/* ==========================================================================
   Drama Story Workflow - Premium Glassmorphism Theme (Dark & Sleek)
   ========================================================================== */

:root {
    --bg-main: #0b0f17;
    --bg-navbar: rgba(15, 22, 42, 0.7);
    --bg-card: rgba(22, 28, 45, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-active: rgba(99, 102, 241, 0.4);
    
    --primary: #8b5cf6;
    --primary-glow: rgba(139, 92, 246, 0.3);
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    
    --accent-purple: #c084fc;
    --accent-green: #34d399;
    --accent-blue: #38bdf8;
    --accent-red: #f87171;
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
}

body {
    background-color: var(--bg-main);
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.1) 0px, transparent 50%),
        radial-gradient(at 50% 0%, rgba(139, 92, 246, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(56, 189, 248, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: 14.5px;
    letter-spacing: -0.01em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar-glass {
    background: var(--bg-navbar);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-glass) !important;
}

.logo-wrapper {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.brand-text {
    font-weight: 700;
    font-size: 18px;
    background: linear-gradient(135deg, #ffffff 30%, #c084fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.navbar-nav .nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.navbar-nav .nav-link.active {
    color: #fff !important;
    background: rgba(99, 102, 241, 0.15);
    box-shadow: inset 0 0 10px rgba(99, 102, 241, 0.1);
}

.user-profile-widget {
    padding: 4px 12px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
}

.user-avatar {
    color: var(--accent-purple);
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.user-role {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Layout Containers
   ========================================================================== */
.app-container {
    flex: 1 0 auto;
}

.app-footer {
    background: rgba(11, 15, 23, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-glass) !important;
}

/* ==========================================================================
   Glassmorphism Cards
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

/* ==========================================================================
   Pipeline Step Navigation
   ========================================================================== */
.drama-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.5);
    padding: 12px 24px;
    border-radius: 14px;
    border: 1px solid var(--border-glass);
    overflow-x: auto;
}

.drama-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    cursor: pointer;
    flex: 1;
    min-width: 90px;
    text-align: center;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.drama-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(50% + 18px);
    width: calc(100% - 36px);
    height: 2px;
    background: var(--border-glass);
    z-index: 1;
    transition: all 0.3s ease;
}

.drama-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1e293b;
    border: 2px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-secondary);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.drama-step-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

/* Active and completed states */
.drama-step.active {
    opacity: 1;
}

.drama-step.active .drama-step-number {
    background: var(--primary-gradient);
    border-color: #a78bfa;
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}

.drama-step.active .drama-step-label {
    color: #fff;
    font-weight: 700;
}

.drama-step.completed {
    opacity: 0.9;
}

.drama-step.completed .drama-step-number {
    background: #064e3b;
    border-color: var(--accent-green);
    color: #fff;
}

.drama-step.completed .drama-step-label {
    color: var(--accent-green);
}

.drama-step.completed:not(:last-child)::after {
    background: var(--accent-green);
}

/* ==========================================================================
   Step-specific cards
   ========================================================================== */
.drama-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 992px) {
    .drama-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .drama-grid-full {
        grid-column: span 2;
    }
}

.drama-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.drama-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.drama-card-header h6 {
    margin: 0;
    font-size: 14.5px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.drama-card-body {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.drama-card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-glass);
    background: rgba(15, 23, 42, 0.2);
    display: flex;
    gap: 12px;
}

/* Accents */
.drama-card.accent-purple {
    border-top: 4px solid var(--primary) !important;
}

.drama-card.accent-green {
    border-top: 4px solid var(--accent-green) !important;
}

.drama-card.accent-blue {
    border-top: 4px solid var(--accent-blue) !important;
}

/* ==========================================================================
   Forms & Controls
   ========================================================================== */
.form-control, .form-select {
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    transition: all 0.2s ease !important;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(15, 23, 42, 0.9) !important;
    border-color: rgba(139, 92, 246, 0.5) !important;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.25) !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

.form-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 12.5px;
    margin-bottom: 6px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    background: var(--primary-gradient) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3) !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5) !important;
}

.btn-primary:active {
    transform: translateY(1px) !important;
}

.btn-white {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fff !important;
    border: 1px solid var(--border-glass) !important;
}

.btn-white:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

/* ==========================================================================
   Storyboard Display (Compact Premium Layout)
   ========================================================================== */
.storyboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

/* Beautiful responsive style for both .storyboard-panel and fallback .storyboard-card */
.storyboard-panel, .storyboard-card {
    background: rgba(15, 23, 42, 0.45) !important;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 16px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.storyboard-panel:hover, .storyboard-card:hover {
    border-color: rgba(99, 102, 241, 0.4) !important;
    background: rgba(15, 23, 42, 0.65) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.panel-number, .storyboard-num {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #818cf8 !important;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
}

.panel-beat {
    font-weight: 600;
    font-size: 11px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-left: 6px;
    vertical-align: middle;
}

.panel-focus {
    font-weight: 700;
    font-size: 13.5px;
    color: #f1f5f9;
    line-height: 1.3;
}

/* Intelligent Line Clamping: Keep the dashboard compact, expand seamlessly on hover! */
.panel-desc, .storyboard-desc {
    font-size: 11.5px !important;
    color: #cbd5e1 !important;
    line-height: 1.5 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    line-clamp: 4 !important; /* Cap text to exactly 4 lines */
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    margin-bottom: 8px;
}

.storyboard-panel:hover .panel-desc, 
.storyboard-card:hover .storyboard-desc {
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important; /* Fully expand text when user hovers */
    overflow: visible !important;
}

/* Sleek micro-chips styling */
.panel-chip {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: #94a3b8 !important;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px !important;
    font-weight: 500;
    margin: 2px;
    white-space: nowrap;
}

.panel-chip-time {
    background: rgba(16, 185, 129, 0.08) !important;
    border-color: rgba(16, 185, 129, 0.15) !important;
    color: #34d399 !important;
}

/* Secondary transition lines hidden by default for ultra-compact layout, slides down on hover! */
.panel-transition {
    font-size: 10px;
    color: #828fa9;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    padding-top: 5px;
    margin-top: 2px;
    line-height: 1.4;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.storyboard-panel:hover .panel-transition {
    opacity: 1;
    max-height: 80px; /* Reveal visual details on hover */
}

/* Continuity Warning and QA badges */
.panel-warn {
    font-size: 10px;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 4px;
    padding: 4px 8px;
    margin-top: 6px;
}

.panel-continuity-warn {
    border-color: rgba(239, 68, 68, 0.3) !important;
}

/* ==========================================================================
   Storyboard Narrative Flow & QA (Sleek Horizontal Alignment)
   ========================================================================== */
.storyboard-story-flow {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px;
    margin-top: 15px;
}

.storyboard-flow-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid rgba(99, 102, 241, 0.4);
    border-radius: 0 8px 8px 0;
    transition: all 0.2s ease;
}

.storyboard-flow-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.storyboard-flow-label {
    min-width: 130px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #818cf8;
    letter-spacing: 0.05em;
    padding-top: 2px;
}

.storyboard-flow-text {
    flex: 1;
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
}

/* Specific left border colors based on flow types */
.storyboard-flow-item:nth-child(even) {
    border-left-color: rgba(16, 185, 129, 0.4);
}

.storyboard-flow-item:nth-child(3n) {
    border-left-color: rgba(245, 158, 11, 0.4);
}


/* ==========================================================================
   Visual DNA Display
   ========================================================================== */
.dna-bible-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dna-bible-item {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12.5px;
}

.dna-bible-role {
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 2px;
}

.dna-bible-desc {
    color: var(--text-secondary);
}

.dna-lighting-track {
    background: rgba(56, 189, 248, 0.05);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: var(--text-secondary);
}

.dna-small-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dna-tag {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Seedance Prompt Boxes
   ========================================================================== */
.seedance-prompt-card {
    background: rgba(22, 28, 45, 0.8);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.seedance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.seedance-title {
    font-weight: 700;
    color: var(--accent-blue);
    font-size: 13px;
    text-transform: uppercase;
}

.seedance-duration {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.drama-prompt-code {
    background: #060913 !important;
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 14px;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #34d399;
    max-height: 250px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* ==========================================================================
   Video Upload Zone
   ========================================================================== */
.drama-video-upload-zone {
    background: rgba(30, 41, 59, 0.2);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.drama-video-upload-zone:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.drama-video-preview {
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-glass);
}

.drama-video-preview video {
    width: 100%;
    display: block;
    max-height: 400px;
}

/* ==========================================================================
   Empty States
   ========================================================================== */
.drama-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
    text-align: center;
}

.drama-empty i {
    font-size: 32px;
    margin-bottom: 12px;
}

.drama-empty p {
    font-size: 12.5px;
    margin: 0;
}

/* ==========================================================================
   Pulse Animations & Effects
   ========================================================================== */
.small-pulse-green {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 6px rgba(52, 211, 153, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
    }
}

.drama-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.drama-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    gap: 12px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Table & Grid Overrides
   ========================================================================== */
.table-responsive {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
}

.table {
    color: var(--text-primary) !important;
    background: transparent !important;
}

.table thead th {
    background: rgba(15, 23, 42, 0.6) !important;
    color: var(--text-secondary) !important;
    border-bottom: 1px solid var(--border-glass) !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 14px !important;
}

.table tbody tr {
    background: rgba(22, 28, 45, 0.2) !important;
    border-bottom: 1px solid var(--border-glass) !important;
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background: rgba(30, 41, 59, 0.45) !important;
}

.table tbody td {
    border-color: var(--border-glass) !important;
    padding: 16px 14px !important;
}

/* Marketing Navigation Tabs */
.nav-tabs {
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid var(--border-glass) !important;
}

.nav-tabs .nav-link {
    color: var(--text-secondary) !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    font-weight: 600;
    font-size: 12px;
    padding: 12px 18px !important;
    transition: all 0.2s ease;
}

.nav-tabs .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.02) !important;
}

.nav-tabs .nav-link.active {
    color: #fff !important;
    background: rgba(99, 102, 241, 0.08) !important;
    border-bottom: 2px solid var(--primary) !important;
}

/* ==========================================================================
   Dark Theme Text Contrast & Bootstrap Color Overrides
   ========================================================================== */
.text-muted {
    color: #94a3b8 !important; /* Sleek Slate Gray for muted text */
}

.text-secondary {
    color: #cbd5e1 !important; /* Brighter slate for secondary text */
}

.text-dark {
    color: #f1f5f9 !important; /* White slate instead of absolute dark black */
}

/* Ensure all labels on the dark background are bright and readable */
.form-label, label {
    color: #e2e8f0 !important;
    font-weight: 600;
}

/* Ensure description texts/notes below controls have proper color contrast */
small.text-muted, .text-muted small {
    color: #94a3b8 !important;
}

/* Ensure projects page table rows and texts look gorgeous in dark theme */
.table-responsive {
    background: var(--bg-card) !important;
    backdrop-filter: blur(12px) !important;
    border: 1px solid var(--border-glass) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37) !important;
}

.table {
    --bs-table-bg: transparent !important;
    --bs-table-color: var(--text-primary) !important;
    --bs-table-border-color: var(--border-glass) !important;
    background-color: transparent !important;
    color: var(--text-primary) !important;
    margin-bottom: 0 !important;
}

.table tbody tr td {
    background-color: transparent !important;
    color: #e2e8f0 !important;
    border-color: var(--border-glass) !important;
}

/* Ensure links in tables look stunning and don't render black */
.table tbody tr td a, 
.table tbody tr td .text-dark, 
.table tbody tr td a.text-dark {
    color: #f1f5f9 !important;
    transition: all 0.2s ease;
}

.table tbody tr td a:hover, 
.table tbody tr td a.text-dark:hover {
    color: var(--accent-purple) !important;
}

/* Row-specific hover highlight */
.table tbody tr:hover td {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

/* Checkbox alignment and dark styling */
.form-check-input {
    background-color: rgba(15, 23, 42, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}
.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* ==========================================================================
   Drama Project Sidebar List Items (Offcanvas)
   ========================================================================== */
.drama-project-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-glass);
    cursor: pointer;
    transition: all 0.25s ease;
    gap: 12px;
}

.drama-project-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.drama-project-item.active {
    background: rgba(99, 102, 241, 0.12);
    border-left: 3px solid var(--primary);
}

.drama-project-item-title {
    font-weight: 600;
    font-size: 13.5px;
    color: #f1f5f9; /* Premium light white text */
    margin-bottom: 3px;
    line-height: 1.4;
}

.drama-project-item-id {
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.drama-project-item-step {
    font-weight: 600;
    font-size: 10.5px;
    padding: 4px 8px;
    border-radius: 20px;
}

/* ==========================================================================
   Responsive 3-Column Premium Layout (Viewports >= 1350px)
   ========================================================================== */
@media (min-width: 1350px) {
    .drama-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px !important;
    }
    
    /* First Row: Input Idea (1col) next to detailed Script (2col) */
    #cardIdea {
        grid-column: span 1 !important;
    }
    #cardScript {
        grid-column: span 2 !important;
    }
    
    /* Second Row: Detailed Storyboard (2col) next to Casting & Mood (1col) */
    #cardStoryboard {
        grid-column: span 2 !important;
    }
    #cardVisualDNA {
        grid-column: span 1 !important;
    }
    
    /* Third Row: Wide video prompts for Seedance / Runway (Full width) */
    #cardSeedance {
        grid-column: span 3 !important;
    }
    
    /* Fourth Row: Marketing Content Blog Part 2 (1col) next to Captions (2col) */
    #cardBlogPart2 {
        grid-column: span 1 !important;
    }
    #cardCaptionFacebook {
        grid-column: span 2 !important;
    }
}

/* ==========================================================================
   Drama Prompt Tabs System Custom CSS
   ========================================================================== */
.drama-prompt-tabs {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    gap: 8px;
}

.drama-prompt-tabs .nav-item {
    margin-bottom: -1px;
}

.drama-prompt-tabs .nav-link {
    background: transparent !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    font-size: 13.5px !important;
    padding: 10px 16px !important;
    transition: all 0.2s ease !important;
    border-radius: 0 !important;
}

.drama-prompt-tabs .nav-link:hover {
    color: #f1f5f9 !important;
    background: transparent !important;
}

.drama-prompt-tabs .nav-link.active {
    color: #38bdf8 !important;
    border-bottom-color: #38bdf8 !important;
    background: transparent !important;
}

.seedance-prompt-stack {
    background: rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
}

/* ==========================================================================
   Drama Caption Custom Styles
   ========================================================================== */
.drama-caption-box {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.drama-caption-box:hover {
    background: rgba(255, 255, 255, 0.04) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.drama-caption-box.selected-caption {
    background: rgba(99, 102, 241, 0.08) !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}



