/* ==========================================================================
   BULLION BANK MANDIRI - STRATEGIC MEETING & MIND MAP DASHBOARD
   Design System: Metallic Luxury Dark Theme (Navy, Slate, Gold & Amber Accents)
   ========================================================================== */

:root {
    --bg-dark: #090d16;
    --bg-card: #111827;
    --bg-card-hover: #1f293d;
    --bg-header: #0f172a;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-gold: rgba(212, 175, 55, 0.3);

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-gold: #fbbf24;

    --gold-primary: #d4af37;
    --gold-gradient: linear-gradient(135deg, #f59e0b 0%, #d4af37 50%, #fbbf24 100%);
    --navy-accent: #1e3a8a;

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

    --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.4);
    --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.2);
}

/* Reset & Base Styles */
* {
    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;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0b0f19;
}
::-webkit-scrollbar-thumb {
    background: #1f293d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold-primary);
}

/* Header */
.app-header {
    background: linear-gradient(180deg, #0b1120 0%, #0f172a 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(--gold-gradient);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0b0f19;
    font-size: 24px;
    box-shadow: var(--shadow-gold);
}

.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(--gold-primary);
}

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

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(17, 24, 39, 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;
}

.milestone-pill {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--border-gold);
}

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

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

/* Navigation Tabs */
.view-tabs {
    display: flex;
    gap: 8px;
    background: rgba(17, 24, 39, 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: #0b0f19;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.tab-btn span {
    background: rgba(0, 0, 0, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* Tab Content Displays */
.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: #0b0f19;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.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);
    border-color: rgba(255, 255, 255, 0.2);
}

/* 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, #131b2e 0%, #090d16 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-svg path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 1s ease forwards;
}

@keyframes drawPath {
    to { stroke-dashoffset: 0; }
}

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

/* Individual Node Styling */
.mm-node {
    position: absolute;
    background: rgba(17, 24, 39, 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.6);
    border-color: var(--gold-primary);
    z-index: 10 !important;
}

.mm-node.root {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    border: 2px solid var(--gold-primary);
    box-shadow: var(--shadow-gold);
    padding: 18px 24px;
    min-width: 240px;
    text-align: center;
}

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

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

.mm-node.leaf {
    font-size: 12px;
}

/* Node Variants */
.mm-node.tag-core { border-left-color: #3b82f6; }
.mm-node.tag-feature { border-left-color: #f59e0b; }
.mm-node.tag-milestone { border-left-color: #10b981; }
.mm-node.tag-danger { border-left-color: #ef4444; }
.mm-node.tag-action { border-left-color: #a855f7; }

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

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

.mm-badge {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 700;
}

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

/* Mind Map Legend */
.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: #3b82f6; }
.legend-dot.feature { background: #f59e0b; }
.legend-dot.milestone { background: #10b981; }
.legend-dot.danger { background: #ef4444; }
.legend-dot.action { background: #a855f7; }

/* FLOWCHART STYLES */
.section-header {
    margin-bottom: 24px;
}
.section-header h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-header h2 i {
    color: var(--gold-primary);
}
.section-header p {
    color: var(--text-muted);
}

.flowchart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    align-items: center;
    margin-bottom: 36px;
}

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

.flow-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-gold);
}

.flow-card.highlight-border {
    border: 2px solid var(--gold-primary);
    background: linear-gradient(180deg, #1f293d 0%, #111827 100%);
}

.flow-step-num {
    position: absolute;
    top: 16px;
    right: 16px;
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
}

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

.flow-card h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 12px;
}

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

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

.flow-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--gold-primary);
    font-size: 20px;
}

/* Comparison Table */
.comparison-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
}

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

.table-responsive {
    overflow-x: auto;
}

.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.custom-table th, .custom-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.custom-table th {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    display: inline-block;
}
.badge-success { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.badge-danger { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.badge-warning { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.badge-primary { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.badge-gold { background: rgba(212, 175, 55, 0.25); color: #fbbf24; border: 1px solid var(--border-gold); }

/* 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: var(--border-gold);
}

.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(59, 130, 246, 0.15); color: #60a5fa; }
.tag-danger { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.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(15, 23, 42, 0.6);
    border-left: 3px solid var(--gold-primary);
    padding: 12px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    font-size: 12.5px;
    color: #d1d5db;
    display: flex;
    gap: 10px;
}

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

/* KANBAN BOARD TODO 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 {
    background: #0b0f19;
    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;
}

.select-input:focus, .search-input:focus {
    border-color: var(--gold-primary);
}

.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;
    width: 100%;
}

.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: #192233;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: grab;
    transition: all 0.2s ease;
}

.kanban-card:hover {
    border-color: var(--gold-primary);
    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: #f87171; }
.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-gold);
    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(--gold-primary);
    color: #0b0f19;
}

/* TRANSCRIPT & SEARCH STYLES */
.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(--gold-primary);
    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: #162032;
    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-gold);
}

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

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

.highlight-match {
    background: rgba(245, 158, 11, 0.4);
    color: #ffffff;
    padding: 0 4px;
    border-radius: 2px;
}

/* MODAL STYLES */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    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;
    animation: modalPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-header {
    background: #0f172a;
    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 {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 24px;
    cursor: pointer;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

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

.form-row .half {
    flex: 1;
}

.form-control {
    background: #0b0f19;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
}

.form-control:focus {
    border-color: var(--gold-primary);
}

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

/* NODE DRAWER STYLES */
.node-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: var(--bg-card);
    border-left: 1px solid var(--border-gold);
    box-shadow: -10px 0 30px rgba(0,0,0,0.6);
    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: #0f172a;
    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-gold);
    font-size: 16px;
}

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

.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;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .header-container { flex-direction: column; align-items: flex-start; }
    .flowchart-grid { grid-template-columns: 1fr; }
    .flow-arrow { transform: rotate(90deg); margin: 10px 0; }
}
