@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Serif:wght@400;600;700&display=swap');

/* Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

:root {
    --navy: #0B1F3A;
    --navy-2: #122842;
    --blue: #1E5EFF;
    --teal: #0F766E;
    --amber: #B45309;
    --red: #B91C1C;
    --grey: #6B7280;
    --light-grey: #F3F4F6;
    --panel: #F8FAFC;
    --panel-strong: #F1F5F9;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
    --shadow-strong: 0 18px 40px rgba(15, 23, 42, 0.16);
}

body {
    font-family: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
    color: var(--text-primary);
    background-color: #f0f0f0;
    /* Darker bg for screen view to pop the slide */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* A4 Slide Container */
.slide {
    width: 297mm;
    height: 210mm;
    background: white;
    position: relative;
    overflow: hidden;
    padding: 15mm 20mm;
    /* Margins */
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Screen Only Navigation */
@media screen {
    .nav-controls {
        position: fixed;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(11, 31, 58, 0.9);
        padding: 10px 20px;
        border-radius: 30px;
        display: flex;
        gap: 20px;
        z-index: 1000;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .nav-controls a {
        color: white;
        text-decoration: none;
        font-weight: 500;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }

    .nav-controls a:hover {
        color: var(--blue);
    }

    .nav-controls button {
        background: rgba(255, 255, 255, 0.08);
        color: white;
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 8px 16px;
        border-radius: 20px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 1px;
        transition: all 0.3s;
    }

    .nav-controls button:hover {
        background: rgba(255, 255, 255, 0.18);
        color: white;
    }
}

@media print {
    body {
        margin: 0;
        background: none;
    }

    .slide {
        width: 100%;
        height: 100vh;
        box-shadow: none;
        page-break-after: always;
        border: none;
    }

    .nav-controls {
        display: none;
    }

    .pdf-hide {
        display: none !important;
    }

    @page {
        size: A4 landscape;
        margin: 0;
    }
}

/* Typography */
h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 10px;
    font-family: 'IBM Plex Serif', 'Georgia', serif;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 25px;
    border-bottom: 3px solid var(--blue);
    display: inline-block;
    padding-bottom: 8px;
    font-family: 'IBM Plex Serif', 'Georgia', serif;
}

h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
    font-family: 'IBM Plex Serif', 'Georgia', serif;
}

p,
li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.small-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--grey);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Layout Utils */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.align-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.content-area {
    flex: 1;
    margin-top: 20px;
}

/* Components */
.card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    padding: 24px;
    border-radius: 8px;
    height: 100%;
    box-shadow: var(--shadow-soft);
}

.card-header {
    background: var(--light-grey);
    padding: 15px;
    font-weight: 700;
    color: var(--navy);
    border-radius: 6px 6px 0 0;
    border-bottom: 2px solid var(--navy);
}

.card-body {
    padding: 15px;
    border: 1px solid #E5E7EB;
    border-top: none;
    border-radius: 0 0 6px 6px;
    background: white;
}

.pill-box {
    background: var(--light-grey);
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--navy);
    border-left: 3px solid var(--blue);
}

.disclaimer-box {
    border: 1px solid var(--grey);
    background: #F9FAFB;
    padding: 10px 15px;
    font-size: 11px;
    color: var(--grey);
    display: inline-block;
    margin-top: 20px;
}

.placeholder-img {
    background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--grey);
    font-style: italic;
    font-size: 14px;
    border: 2px dashed #D1D5DB;
    border-radius: 8px;
    text-align: center;
    padding: 20px;
    height: 100%;
    min-height: 200px;
}

/* Timeline */
.timeline-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding-top: 20px;
    margin-top: 40px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--light-grey);
}

.timeline-step {
    width: 23%;
    position: relative;
}

.timeline-bar {
    height: 4px;
    background: var(--blue);
    position: absolute;
    top: -15px;
    left: 0;
    width: 100%;
}

.timeline-step:last-child .timeline-bar {
    width: 100%;
}

/* Footer */
.slide-footer {
    position: absolute;
    bottom: 12mm;
    left: 20mm;
    right: 20mm;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #E5E7EB;
    padding-top: 10px;
    font-size: 11px;
    color: var(--grey);
}

.brand-mark {
    font-weight: 600;
    color: var(--navy);
}

/* Bullet Lists */
ul.clean-list {
    list-style: none;
}

ul.clean-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

ul.clean-list li::before {
    content: "•";
    color: var(--blue);
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Enterprise Visual Components */

/* Gradients & Backgrounds */
.bg-gradient-navy {
    background: linear-gradient(135deg, var(--navy) 0%, #1a3c6e 100%);
    color: white;
}

.bg-soft-blue {
    background: #EFF6FF;
}

.bg-soft-gray {
    background: #F9FAFB;
}

/* Header & Panels */
.slide-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 20px;
}

.header-kicker {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    font-weight: 700;
    color: var(--blue);
}

.header-tag {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--navy);
}

.panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.panel-soft {
    background: var(--panel);
    border: 1px solid var(--border);
}

.panel-ink {
    background: var(--navy);
    color: white;
    border: 1px solid #132B4A;
    box-shadow: var(--shadow-strong);
}

.panel-title {
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.panel-note {
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.stat-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--navy);
}

.stat-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
}

.stat-foot {
    font-size: 11px;
    color: var(--grey);
    margin-top: 6px;
}

.icon-badge {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border);
    background: var(--panel);
    color: var(--navy);
}

.icon-badge.red {
    background: #FEE2E2;
    color: var(--red);
    border-color: #FECACA;
}

.icon-badge.blue {
    background: #DBEAFE;
    color: var(--blue);
    border-color: #BFDBFE;
}

.icon-badge.teal {
    background: #CCFBF1;
    color: var(--teal);
    border-color: #99F6E4;
}

.icon-badge.amber {
    background: #FEF3C7;
    color: var(--amber);
    border-color: #FDE68A;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    font-size: 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 700;
    background: var(--panel-strong);
    color: var(--navy);
    border: 1px solid var(--border);
}

.chip.blue {
    background: #DBEAFE;
    color: var(--blue);
    border-color: #BFDBFE;
}

.chip.red {
    background: #FEE2E2;
    color: var(--red);
    border-color: #FECACA;
}

.chip.teal {
    background: #CCFBF1;
    color: var(--teal);
    border-color: #99F6E4;
}

.chip.amber {
    background: #FEF3C7;
    color: var(--amber);
    border-color: #FDE68A;
}

.grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.stacked-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.flow-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.flow-step {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    min-width: 140px;
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.flow-arrow {
    font-size: 18px;
    color: var(--blue);
    font-weight: 700;
}

.list-tight li {
    margin-bottom: 8px;
}

/* Visual Containers */
.visual-block {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.visual-overlay {
    background: rgba(11, 31, 58, 0.85);
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    color: white;
}

/* Icons & Infographics */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
}

.icon-navy {
    background: var(--navy);
    color: white;
}

.icon-blue {
    background: var(--blue);
    color: white;
}

.icon-red {
    background: #FEE2E2;
    color: #DC2626;
}

.icon-green {
    background: #DCFCE7;
    color: #166534;
}

/* Diagram Connectors */
.connector-line {
    border-left: 2px dashed #CBD5E1;
    height: 30px;
    margin-left: 30px;
    /* Center of icon box usually */
}

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

/* Dashboard Mock components */
.dash-widget {
    background: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #F3F4F6;
}

.chart-placeholder {
    background: #F8FAFC;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: var(--text-secondary);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.chart-bar {
    background: var(--blue);
    width: 20px;
    margin: 0 5px;
    border-radius: 2px 2px 0 0;
    align-self: flex-end;
}

/* Animations (Subtle) */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* PDF export should not animate or hide content */
.pdf-export-container .fade-in,
.pdf-export-container .slide-up {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

.delay-1 {
    animation-delay: 0.15s;
}

.delay-2 {
    animation-delay: 0.3s;
}

.delay-3 {
    animation-delay: 0.45s;
}

.delay-4 {
    animation-delay: 0.6s;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Typography Overrides */
.text-white {
    color: white !important;
}

.text-navy {
    color: var(--navy) !important;
}

.text-blue {
    color: var(--blue) !important;
}

.font-huge {
    font-size: 56px;
    line-height: 1.1;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.text-ink {
    color: var(--text-primary) !important;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}
