﻿body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.ai-generation-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.ai-header {
    background-color: #343a40;
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 10px 10px;
}

.ai-prompt-card {
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    height: 100%;
}

.ai-prompt-input {
    min-height: 300px;
    resize: vertical;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s;
}

    .ai-prompt-input:focus {
        border-color: #0d6efd;
        box-shadow: none;
    }

.ai-options select {
    cursor: pointer;
}

.ai-results-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 100%;
    padding: 1.5rem;
}

.ai-image-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
    margin-bottom: 1.5rem;
}

    .ai-image-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    }

.ai-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    cursor: zoom-in;
    transition: transform 0.3s;
}

    .ai-image:hover {
        transform: scale(1.02);
    }

.ai-image-actions {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e9ecef;
}

.ai-loading {
    display: none;
    text-align: center;
    padding: 2rem;
}

.ai-loading-spinner {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1rem;
}

.ai-empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

    .ai-empty-state i {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

/* Modal for enlarged image */
.ai-image-modal .modal-dialog {
    max-width: 90%;
    max-height: 90vh;
}

.ai-image-modal .modal-body {
    text-align: center;
    padding: 0;
}

.ai-image-modal img {
    max-height: 80vh;
    max-width: 100%;
    object-fit: contain;
}

/* Two column layout */
.ai-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

@media (max-width: 992px) {
    .ai-columns {
        grid-template-columns: 1fr;
    }
}
