/* Images Section Styles */

#images-section {
    background: #F1F1F1;
}

#images-section main {
    width: 100%;
    height: calc(100vh - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.images-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Generated Image Display */
.generated-image-display {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px;
    box-sizing: border-box;
}

.image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-align: center;
}

.image-placeholder i {
    font-size: 120px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.image-placeholder p {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    margin: 0;
}

.generated-image-wrapper {
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.generated-image {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

.image-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.image-action-btn {
    padding: 10px 20px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.image-action-btn:hover {
    background: #f8f9ff;
    border-color: #667eea;
    color: #667eea;
}

.image-action-btn i {
    font-size: 18px;
}

/* Loading State */
.image-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.image-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.image-loading-text {
    font-size: 16px;
    color: #666;
    font-family: 'Inter', sans-serif;
}

.image-loading-subtext {
    font-size: 14px;
    color: #999;
    font-family: 'Inter', sans-serif;
    font-style: italic;
}

/* Prompt Input Container */
.image-prompt-container {
    width: 100%;
    padding: 30px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.image-generation-form {
    width: 100%;
    max-width: 800px;
}

/* Model Selector */
.model-selector-wrapper {
    margin-bottom: 20px;
}

.model-selector-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
}

.model-options {
    display: flex;
    gap: 12px;
}

.model-option-btn {
    flex: 1;
    padding: 16px 20px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.model-option-btn:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.model-option-btn.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.model-option-btn i {
    font-size: 24px;
    color: #667eea;
}

.model-option-btn span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.model-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    letter-spacing: 0.5px;
}

/* Generation Mode Selector */
.generation-mode-wrapper {
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.generation-mode-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.generation-mode-select {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    border: 2px solid #ddd;
    border-radius: 10px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.generation-mode-select:hover {
    border-color: #667eea;
}

.generation-mode-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Image Upload Area */
.image-upload-wrapper {
    margin-bottom: 20px;
    animation: slideDown 0.3s ease-out;
}

.image-upload-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
}

.image-upload-label i {
    font-size: 18px;
    color: #667eea;
}

.image-upload-area {
    width: 100%;
    min-height: 180px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.image-upload-area:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.02);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    color: #999;
}

.upload-placeholder i {
    font-size: 48px;
    color: #667eea;
    margin-bottom: 12px;
}

.upload-placeholder p {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.upload-placeholder span {
    font-size: 13px;
    color: #999;
}

.uploaded-image-preview {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.uploaded-image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.remove-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-image-btn:hover {
    background: #dc3545;
    transform: scale(1.1);
}

.remove-image-btn i {
    font-size: 18px;
}

.prompt-input-wrapper {
    display: flex;
    gap: 12px;
    width: 100%;
}

#image-prompt-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #ddd;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    background: white;
    transition: all 0.2s ease;
}

#image-prompt-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#image-prompt-input::placeholder {
    color: #999;
}

.generate-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.generate-btn:active {
    transform: translateY(0);
}

.generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.generate-btn i {
    font-size: 20px;
}

/* Error State */
.image-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: #dc3545;
    text-align: center;
    padding: 40px;
}

.image-error i {
    font-size: 80px;
    opacity: 0.5;
}

.image-error-text {
    font-size: 18px;
    font-family: 'Inter', sans-serif;
    max-width: 500px;
}

.retry-btn {
    padding: 12px 24px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: #c82333;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .generated-image-display {
        padding: 20px;
    }

    .image-placeholder i {
        font-size: 80px;
    }

    .image-placeholder p {
        font-size: 16px;
    }

    .image-prompt-container {
        padding: 20px;
    }

    .model-selector-wrapper {
        margin-bottom: 16px;
    }

    .model-options {
        flex-direction: column;
        gap: 8px;
    }

    .model-option-btn {
        padding: 12px 16px;
    }

    .model-option-btn i {
        font-size: 20px;
    }

    .model-option-btn span {
        font-size: 13px;
    }

    .generation-mode-wrapper {
        margin-bottom: 16px;
    }

    .generation-mode-select {
        padding: 10px 14px;
        font-size: 14px;
    }

    .image-upload-wrapper {
        margin-bottom: 16px;
    }

    .image-upload-area {
        min-height: 150px;
    }

    .upload-placeholder {
        height: 150px;
    }

    .upload-placeholder i {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .upload-placeholder p {
        font-size: 14px;
    }

    .upload-placeholder span {
        font-size: 12px;
    }

    .uploaded-image-preview {
        height: 150px;
    }

    .prompt-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    #image-prompt-input {
        padding: 14px 16px;
        font-size: 14px;
    }

    .generate-btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        font-size: 14px;
    }

    .generated-image {
        max-height: 50vh;
    }

    .image-actions {
        width: 100%;
    }

    .image-action-btn {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}

