/* ========================================
   Prompt Type Selection
   ======================================== */

.prompt-options {
    background: rgba(34, 34, 38, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(207, 208, 212, 0.1);
}

.prompt-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.prompt-btn {
    position: relative;
    cursor: pointer;
    margin: 0;
}

.prompt-btn input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.prompt-btn span {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background: #2A2A2E;
    border: 2px solid rgba(207, 208, 212, 0.2);
    border-radius: 8px;
    color: #CDCDCD;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.25s ease;
    white-space: nowrap;
    user-select: none;
}

.prompt-btn:hover span {
    border-color: rgba(239, 251, 83, 0.4);
    background: #323236;
    color: #fff;
}

.prompt-btn.active span,
.prompt-btn input[type="radio"]:checked + span {
    background: #EFFB53;
    border-color: #EFFB53;
    color: #222226;
    font-weight: 500;
    box-shadow: 0 2px 12px rgba(239, 251, 83, 0.3);
}

@media (max-width: 768px) {
    .prompt-options {
        padding: 1.25rem;
    }

    .prompt-buttons {
        gap: 0.5rem;
    }

    .prompt-btn span {
        padding: 0.55rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .prompt-options h6 {
        font-size: 0.85rem !important;
    }

    .prompt-buttons {
        gap: 0.4rem;
    }

    .prompt-btn span {
        padding: 0.5rem 0.85rem;
        font-size: 0.8rem;
    }
}

/* ========================================
   Dropzone Styling
   ======================================== */

.dropzone {
    min-height: 350px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 2px dashed rgba(207, 208, 212, 0.3);
    background: #222226;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.dropzone:hover {
    border-color: #EFFB53;
    background: #2A2A2E;
    box-shadow: 0 0 25px rgba(239, 251, 83, 0.1);
}

.dropzone.dz-drag-hover {
    border-color: #EFFB53;
    border-style: solid;
    background: #2A2A2E;
    box-shadow: 0 0 35px rgba(239, 251, 83, 0.2);
}

.dropzone .dz-message {
    margin: 0;
    text-align: center;
    opacity: 1 !important;
    display: block !important;
}

/* Keep dropzone message visible even when files are added */
.dropzone.dz-started .dz-message {
    display: block !important;
    opacity: 1 !important;
}

.dropzone:hover .fa-cloud-arrow-up {
    color: #EFFB53 !important;
    transform: translateY(-8px);
}

.dropzone .fa-cloud-arrow-up {
    transition: all 0.3s ease;
}

.dropzone .dz-preview {
    display: none !important;
}

/* Remove Dropzone default remove links from dropzone area */
.dropzone .dz-remove {
    display: none;
}

/* ========================================
   Results Section
   ======================================== */

#results-section {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#results-section .section-title h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ========================================
   Result Cards
   ======================================== */

.result-card {
    background: #222226;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(207, 208, 212, 0.15);
    transition: all 0.3s ease;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.result-card:hover {
    border-color: rgba(239, 251, 83, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.result-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #1a1a1d;
}

.result-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    max-height: 250px;
    object-fit: cover;
}

.result-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.result-filename {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    word-break: break-word;
}

.result-filename i {
    color: #EFFB53;
}

.description-type-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.85rem;
    background: rgba(239, 251, 83, 0.15);
    border: 1px solid rgba(239, 251, 83, 0.3);
    border-radius: 6px;
    color: #EFFB53;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

.description-type-badge i {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* ========================================
   Status Indicators
   ======================================== */

.result-status {
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid #ffc107;
}

.result-status i {
    font-size: 1.1rem;
}

.status-text {
    color: #CDCDCD;
    font-weight: 500;
    font-size: 0.95rem;
}

/* ========================================
   Description Boxes
   ======================================== */

.description-box {
    background: rgba(239, 251, 83, 0.08);
    border: 1px solid rgba(239, 251, 83, 0.2);
    border-radius: 10px;
    overflow: hidden;
    animation: expandIn 0.3s ease-out;
}

@keyframes expandIn {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 500px;
    }
}

.description-header {
    background: rgba(239, 251, 83, 0.1);
    padding: 0.875rem 1.25rem;
    color: #EFFB53;
    font-weight: 600;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(239, 251, 83, 0.15);
}

.description-header i {
    font-size: 1rem;
}

.description-text {
    padding: 1.25rem;
    color: #ffffff;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Warning variant */
.description-box.warning {
    background: rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.3);
}

.description-box.warning .description-header {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border-bottom-color: rgba(255, 193, 7, 0.2);
}

.description-box.warning .description-text {
    color: #ffc107;
}

/* Error variant */
.description-box.error {
    background: rgba(220, 53, 69, 0.08);
    border-color: rgba(220, 53, 69, 0.3);
}

.description-box.error .description-header {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border-bottom-color: rgba(220, 53, 69, 0.2);
}

.description-box.error .description-text {
    color: #ff6b7a;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .dropzone {
        min-height: 280px;
        padding: 2rem 1rem;
    }

    .dropzone .fa-cloud-arrow-up {
        font-size: 3rem !important;
    }

    .dropzone h3 {
        font-size: 1.3rem !important;
    }

    .result-card {
        padding: 1.25rem;
    }

    .result-image-wrapper img {
        max-height: 200px;
    }

    .result-filename {
        font-size: 1rem;
    }

    #results-section .section-title h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .dropzone {
        min-height: 250px;
        padding: 1.5rem 1rem;
    }

    .result-card {
        padding: 1rem;
    }

    .description-header,
    .description-text {
        padding: 0.875rem 1rem;
    }
}

/* ========================================
   Loading Animation Enhancement
   ======================================== */

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.fa-spinner {
    animation: spin 1s linear infinite;
}
