/* Component-specific styles */

/* Button styles */
.button-container {
    text-align: right;
    grid-column: span 2;
    margin-right: 8px;
}

.button-container button {
    background-color: #b20089;
    color: Black;
    font-weight: bold;
    padding: 15px 16px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    margin: 2px 1px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

.toggle-button {
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    margin-right: 2px;
    flex-wrap: nowrap;
}

/* Form input styles */
#prompt {
    grid-column: 2 / -1;
    height: 50px;
    width: 500px;
    margin-left: 0px;
    color: #ff9000;
    text-align: right;
    line-height: normal;
    padding-top: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
    white-space: normal;
}

#UserInput {
    grid-column: 2 / -1;
    height: 20px;
    width: 1800px;
    margin-left: 0px;
}

/* Image container styles */
.image-container {
    position: relative;
    margin-bottom: 20px;
    border: 1px solid #333;
    border-radius: 5px;
    overflow: visible; /* Changed from hidden to visible to ensure buttons aren't clipped */
}

.image-container.selected {
    transform: translateY(-10px);
    border: 2px solid #b20089;
}

/* Button styling for image containers */
.remove-button,
.pack-button {
    position: absolute;
    padding: 5px 10px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.remove-button {
    bottom: 10px;
    right: 10px;
    background-color: #ff3b30;
    color: white;
    display: block !important; /* Ensure it's always displayed */
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 100; /* Higher z-index to ensure it's on top */
    position: absolute !important; /* Force absolute positioning */
    font-size: 16px; /* Slightly larger font for the icon */
}

.pack-button {
    top: 10px;
    left: 10px;
    background-color: #b20089;
    color: white;
}

.remove-button:hover,
.pack-button:hover {
    opacity: 1;
}

/* Metadata icon */
.metadata-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 50%;
    cursor: pointer;
    font-style: normal;
    font-size: 12px;
}

/* Loader animation */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    position: fixed; 
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); 
    z-index: 100;  
    display: none; 
}

/* Metadata popup */
#metadataPopup {
    display: none;
    position: fixed;
    top: 20%;
    left: 20%;
    background: black;
    color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 1000;
    max-width: 60%;
    max-height: 60%;
    overflow: auto;
}
