/* ─── Global Styles for Novel-to-Screenplay ─── */

/* Navigation gradient background */
.nav-gradient {
    background: linear-gradient(135deg, #312e81 0%, #3730a3 50%, #1e40af 100%);
}

/* Navigation API Key input */
.nav-api-input {
    width: 300px;
    padding: 0.25rem 2rem 0.25rem 0.625rem;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.375rem;
    color: white;
    outline: none;
    transition: all 0.2s;
}
.nav-api-input::placeholder {
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
}
.nav-api-input:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    width: 340px;
}

/* Card base style */
.card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.875rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s;
}
.card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Drop zone */
.drop-zone {
    border: 2px dashed #c7d2fe;
    border-radius: 0.875rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: linear-gradient(135deg, #f8faff 0%, #f0f4ff 100%);
}
.drop-zone:hover {
    border-color: #818cf8;
    background: linear-gradient(135deg, #eef2ff 0%, #e0e7ff 100%);
}
.drop-zone.dragover {
    border-color: #6366f1;
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    transform: scale(1.01);
}
.drop-zone-icon {
    margin-bottom: 0.75rem;
    transition: transform 0.3s;
}
.drop-zone:hover .drop-zone-icon {
    transform: translateY(-4px);
}

/* Progress bar gradient */
.progress-bar-gradient {
    background: linear-gradient(90deg, #6366f1 0%, #3b82f6 50%, #06b6d4 100%);
    background-size: 200% 100%;
    animation: progress-shimmer 2s ease-in-out infinite;
}

@keyframes progress-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── Legacy styles ─── */

#yaml-container {
    max-height: 75vh;
    overflow: auto;
}

#yaml-container pre {
    margin: 0;
    padding: 1rem;
    font-size: 0.875rem;
    line-height: 1.6;
}

.progress-stage-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
