/* ==========================================================================
   LIVIN MANDIRI - MINIMUM OS & XCODE 27 PREPARATION DASHBOARD
   Design System: Mandiri Royal Blue Glassmorphism (Deep Blue, Electric Gold, Cyan)
   ========================================================================== */

:root {
    --bg-dark: #050b18;
    --bg-card: #0c172e;
    --bg-card-hover: #152445;
    --bg-header: #081124;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(245, 158, 11, 0.3);

    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-gold: #fbbf24;
    --text-blue: #38bdf8;
    --text-purple: #c084fc;

    --gold-primary: #f59e0b;
    --gold-gradient: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fbbf24 100%);
    --blue-gradient: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    --purple-gradient: linear-gradient(135deg, #9333ea 0%, #c084fc 100%);

    --status-todo: #3b82f6;
    --status-progress: #f59e0b;
    --status-completed: #10b981;

    --font-heading: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;

    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 20px rgba(245, 158, 11, 0.25);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #050b18;
}
::-webkit-scrollbar-thumb {
    background: #152445;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Header */
.app-header {
    background: linear-gradient(180deg, #050b18 0%, #0c172e 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
}

.header-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--blue-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.brand-text h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-text h1 span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sub-badge {
    font-size: 12px;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    margin-top: 2px;
}

.sub-badge i {
    color: var(--text-blue);
}

.header-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(12, 23, 46, 0.8);
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.meta-item i {
    color: var(--gold-primary);
    font-size: 18px;
}

.meta-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-val {
    font-size: 13px;
    font-weight: 600;
}

.alert-getback-pill {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.highlight-gold { color: var(--text-gold); }
.highlight-blue { color: var(--text-blue); }

/* Layout */
.main-layout {
    max-width: 1600px;
    margin: 24px auto;
    padding: 0 32px;
}

/* Tabs */
.view-tabs {
    display: flex;
    gap: 8px;
    background: rgba(12, 23, 46, 0.7);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    margin-bottom: 24px;
    overflow-x: auto;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 12px 22px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
    background: var(--gold-gradient);
    color: #050b18;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.badge-tab-alert {
    background: #ef4444;
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

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

/* Buttons */
.btn {
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-gold {
    background: var(--gold-gradient);
    color: #050b18;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* GETBACK TAB STYLES */
.getback-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 24px;
    margin-bottom: 36px;
}

.getback-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
    position: relative;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease;
}

.getback-card:hover {
    transform: translateY(-4px);
}

.border-gold-glow {
    border: 2px solid var(--gold-primary);
    box-shadow: var(--shadow-gold);
}

.border-blue-glow {
    border: 2px solid var(--text-blue);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

.border-purple-glow {
    border: 2px solid var(--text-purple);
    box-shadow: 0 0 20px rgba(192, 132, 252, 0.25);
}

.getback-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-getback-required {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid var(--gold-primary);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(245, 158, 11, 0.4); }
    50% { box-shadow: 0 0 15px rgba(245, 158, 11, 0.8); }
}

.getback-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.border-blue-glow .getback-icon {
    background: rgba(56, 189, 248, 0.15);
    color: var(--text-blue);
}

.border-purple-glow .getback-icon {
    background: rgba(192, 132, 252, 0.15);
    color: var(--text-purple);
}

.getback-card h3 {
    font-family: var(--font-heading);
    font-size: 19px;
    margin-bottom: 8px;
    padding-right: 120px;
}

.getback-owner {
    font-size: 13px;
    color: var(--text-blue);
    margin-bottom: 14px;
}

.getback-desc {
    font-size: 13.5px;
    color: #cbd5e1;
    margin-bottom: 18px;
    line-height: 1.6;
}

.getback-scenarios {
    background: rgba(5, 11, 24, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scenario-item {
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sc-label {
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
}

.sc-if { color: var(--gold-primary); }
.sc-then { color: var(--text-blue); }

.sc-val {
    color: #f1f5f9;
}

/* Fixed Points Section */
.fixed-points-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
}

.fixed-points-section h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-green { color: #34d399; }
.text-danger { color: #fb7185; }
.text-gold { color: #fbbf24; }
.text-blue { color: #38bdf8; }

.fixed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 18px;
}

.fixed-card {
    background: rgba(5, 11, 24, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.fixed-icon {
    font-size: 22px;
    margin-top: 2px;
}

.fixed-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.fixed-card p {
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* MIND MAP STYLES */
.mindmap-toolbar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.mindmap-toolbar h3 {
    font-family: var(--font-heading);
    font-size: 18px;
}

.mindmap-wrapper {
    position: relative;
    width: 100%;
    height: 700px;
    background: radial-gradient(circle at center, #0e1e3f 0%, #050b18 100%);
    border: 1px solid var(--border-color);
    border-top: none;
    overflow: hidden;
    cursor: grab;
    user-select: none;
}

.mindmap-wrapper:active {
    cursor: grabbing;
}

.mindmap-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.mindmap-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform-origin: 0 0;
    z-index: 2;
}

.mm-node {
    position: absolute;
    background: rgba(12, 23, 46, 0.95);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 18px;
    min-width: 180px;
    max-width: 280px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-card);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(8px);
}

.mm-node:hover {
    transform: scale(1.06);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    border-color: var(--text-blue);
    z-index: 10 !important;
}

.mm-node.root {
    background: linear-gradient(135deg, #0284c7 0%, #0c172e 100%);
    border: 2px solid var(--text-blue);
    box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
    padding: 18px 24px;
    min-width: 250px;
    text-align: center;
}

.mm-node.root h4 {
    font-family: var(--font-heading);
    font-size: 17px;
    color: #ffffff;
    margin-bottom: 4px;
}

.mm-node.category {
    background: #152445;
    border-left: 4px solid var(--gold-primary);
    font-weight: 700;
    font-size: 14px;
}

.mm-node.tag-core { border-left-color: #38bdf8; }
.mm-node.tag-feature { border-left-color: #f59e0b; }
.mm-node.tag-data { border-left-color: #10b981; }
.mm-node.tag-danger { border-left-color: #fb7185; }
.mm-node.tag-action { border-left-color: #c084fc; }

.mm-node-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}

.mm-node-title {
    font-weight: 700;
}

.mm-node p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.mindmap-legend {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.legend-dot.core { background: #38bdf8; }
.legend-dot.feature { background: #f59e0b; }
.legend-dot.data { background: #10b981; }
.legend-dot.danger { background: #fb7185; }
.legend-dot.action { background: #c084fc; }

/* CAMPAIGN & IMPACT STYLES */
.impact-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 32px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-card);
}

.metric-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    background: rgba(56, 189, 248, 0.15);
    color: var(--text-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.metric-icon.gold-bg { background: rgba(245, 158, 11, 0.15); color: var(--gold-primary); }
.metric-icon.green-bg { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.metric-icon.red-bg { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

.metric-num {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    display: block;
}

.metric-label {
    font-size: 12px;
    color: var(--text-muted);
}

.campaign-timeline-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px;
}

.campaign-timeline-box h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline-phases {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.phase-card {
    background: rgba(5, 11, 24, 0.7);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 22px;
    position: relative;
}

.phase-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 8px;
}
.phase-1 { background: rgba(56, 189, 248, 0.2); color: #38bdf8; }
.phase-2 { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.phase-3 { background: rgba(244, 63, 94, 0.2); color: #fb7185; }

.phase-period {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.phase-card h4 {
    font-size: 16px;
    margin-bottom: 12px;
}

.phase-card ul {
    list-style: none;
}

.phase-card ul li {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

/* TAKEAWAYS STYLES */
.takeaways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
}

.takeaway-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.takeaway-card:hover {
    transform: translateY(-3px);
    border-color: rgba(56, 189, 248, 0.4);
}

.card-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tag-decision { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.tag-accent { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.tag-ux { background: rgba(56, 189, 248, 0.15); color: #60a5fa; }
.tag-danger { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.tag-legal { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.tag-feature { background: rgba(236, 72, 153, 0.15); color: #f472b6; }

.takeaway-card h3 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 10px;
    padding-right: 90px;
}

.takeaway-card p {
    color: var(--text-muted);
    font-size: 13.5px;
    margin-bottom: 16px;
}

.quote-box {
    background: rgba(5, 11, 24, 0.6);
    border-left: 3px solid var(--text-blue);
    padding: 12px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 12.5px;
    color: #cbd5e1;
    display: flex;
    gap: 10px;
}

.quote-box i {
    color: var(--text-blue);
    font-size: 14px;
    margin-top: 2px;
}

/* KANBAN BOARD STYLES */
.section-header-todo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.select-input, .search-input, .form-control {
    background: #050b18;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    width: 100%;
}

.select-input:focus, .search-input:focus, .form-control:focus {
    border-color: var(--text-blue);
}

.search-group {
    flex-grow: 1;
    position: relative;
}

.search-group i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-group .search-input {
    padding-left: 36px;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    align-items: start;
}

.kanban-column {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    min-height: 500px;
}

.column-header {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
}

.column-header h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-todo { background: rgba(59, 130, 246, 0.15); color: #60a5fa; }
.status-progress { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-completed { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.kanban-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kanban-card {
    background: #122142;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    cursor: grab;
    transition: all 0.2s ease;
}

.kanban-card:hover {
    border-color: var(--text-blue);
    transform: translateY(-2px);
}

.card-top-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.cat-pill {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-muted);
}

.prio-pill {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.prio-high { color: #fb7185; }
.prio-medium { color: #fbbf24; }
.prio-low { color: #34d399; }

.kanban-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}

.kanban-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-footer-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
    font-size: 12px;
}

.assignee {
    color: var(--text-blue);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-change-btns {
    display: flex;
    gap: 4px;
}

.btn-icon {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--text-blue);
    color: #050b18;
}

/* TRANSCRIPT & SEARCH */
.transcript-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.transcript-search-box .search-icon {
    color: var(--text-blue);
    font-size: 18px;
}

.transcript-search-input {
    flex-grow: 1;
    background: transparent;
    border: none;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
}

.transcript-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    max-height: 700px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dialogue-item {
    background: #101c38;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
}

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

.speaker-name {
    font-weight: 700;
    font-size: 13px;
    color: var(--text-blue);
}

.timestamp {
    font-size: 11px;
    color: var(--text-muted);
}

.dialogue-text {
    font-size: 13px;
    color: #e2e8f0;
    line-height: 1.5;
}

.highlight-match {
    background: rgba(56, 189, 248, 0.35);
    color: #ffffff;
    padding: 0 4px;
    border-radius: 2px;
}

/* MODAL & DRAWER */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.modal-overlay.active {
    display: flex;
}

.modal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 540px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    overflow: hidden;
}

.modal-header {
    background: #050b18;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--text-gold);
}

.modal-close, .drawer-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

.modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-footer {
    padding: 16px 24px;
    background: #050b18;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.form-row {
    display: flex;
    gap: 16px;
}
.form-row .half { flex: 1; }

.node-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--text-blue);
    box-shadow: -10px 0 30px rgba(0,0,0,0.7);
    z-index: 150;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.node-drawer.active { right: 0; }

.drawer-header {
    background: #050b18;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h4 {
    font-family: var(--font-heading);
    color: var(--text-blue);
    font-size: 16px;
}

.drawer-body {
    padding: 24px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Footer */
.app-footer {
    text-align: center;
    padding: 30px 0;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}
