/* 
   ==========================================================================
   DESIGN SYSTEM & VARIABLES - RAPPORT GA4 CPNV
   ========================================================================== 
*/

:root {
    /* Color Palette (HSL & Hex) */
    --bg-main: #090d16;
    --bg-card: rgba(17, 24, 39, 0.7);
    --bg-card-hover: rgba(23, 33, 53, 0.85);
    --border-color: rgba(51, 65, 85, 0.5);
    
    --brand-green: #009639;
    --brand-green-glow: rgba(0, 150, 57, 0.25);
    --brand-green-dark: #00732b;
    
    --accent-blue: #0ea5e9;
    --accent-blue-glow: rgba(14, 165, 233, 0.2);
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.2);
    --accent-purple: #8b5cf6;
    --accent-purple-glow: rgba(139, 92, 246, 0.2);
    
    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Layout */
    --radius-lg: 16px;
    --radius-md: 10px;
    --radius-sm: 6px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fonts */
    --font-family: 'Century Gothic', CenturyGothic, Questrial, AppleGothic, 'Inter', system-ui, -apple-system, sans-serif;
}

/* Base resets & theme overrides */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 150, 57, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.05) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(139, 92, 246, 0.03) 0px, transparent 50%);
    background-attachment: fixed;
    padding: 2.5rem 1.5rem;
    min-height: 100vh;
}

/* 
   ==========================================================================
   COMMON COMPONENTS & BUTTONS
   ========================================================================== 
*/

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    border: 1px solid transparent;
}

.btn-secondary {
    background-color: rgba(30, 41, 59, 0.5);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(51, 65, 85, 0.8);
    border-color: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-story-play {
    background-color: var(--brand-green);
    color: white;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-story-play:hover {
    background-color: var(--brand-green-dark);
    transform: scale(1.1);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-accent {
    background-color: var(--brand-green-glow);
    color: #4ade80;
    border: 1px solid rgba(0, 150, 57, 0.4);
}

.badge-success {
    background-color: var(--accent-green-glow);
    color: #4ade80;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.badge-live {
    background-color: var(--brand-green);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 1px;
}

.badge-live .dot {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.2s infinite;
}

/* 
   ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== 
*/

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.header-main {
    flex: 1;
    min-width: 300px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.logo-badge {
    background-color: var(--brand-green);
    color: white;
    font-weight: 900;
    font-size: 1.1rem;
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    letter-spacing: 1px;
}

.logo-separator {
    width: 1px;
    height: 20px;
    background-color: var(--border-color);
}

.logo-text-area {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-family: 'Century Gothic', CenturyGothic, Questrial, AppleGothic, sans-serif;
}

.logo-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.logo-subtitle {
    font-size: 0.82rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-meta-text {
    font-size: 0.8rem;
    line-height: 1.2;
}

.meta-label {
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.meta-date {
    color: var(--text-secondary);
}

.main-title {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, #ffffff 60%, var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
}

.author-badge i {
    color: var(--brand-green);
}

.author-title {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.author-names {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* 
   ==========================================================================
   KPI CARDS GRID
   ========================================================================== 
*/

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.kpi-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.kpi-card:hover {
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

.kpi-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.kpi-icon-wrap i {
    width: 24px;
    height: 24px;
}

.bg-green {
    background-color: var(--brand-green-glow);
    color: var(--brand-green);
}

.bg-blue {
    background-color: var(--accent-blue-glow);
    color: var(--accent-blue);
}

.bg-green {
    background-color: var(--accent-green-glow);
    color: var(--accent-green);
}

.bg-purple {
    background-color: var(--accent-purple-glow);
    color: var(--accent-purple);
}

.kpi-data {
    display: flex;
    flex-direction: column;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-primary);
}

.kpi-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.kpi-trend {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
    display: flex;
    align-items: center;
    gap: 4px;
}

.kpi-trend.positive {
    color: #4ade80;
}

.kpi-trend i {
    width: 12px;
    height: 12px;
}

/* 
   ==========================================================================
   DASHBOARD GRID & LAYOUT
   ========================================================================== 
*/

.dashboard-grid {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.grid-col-8 {
    flex: 2 1 65%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 350px;
}

.grid-col-4 {
    flex: 1 1 30%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 300px;
}

.dashboard-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: var(--transition-normal);
}

.dashboard-card:hover {
    border-color: rgba(0, 150, 57, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.card-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.card-title-wrap h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.card-subtitle-question {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
    font-weight: 400;
    line-height: 1.4;
}

.card-index {
    background-color: rgba(30, 41, 59, 0.8);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}

.header-icon {
    color: var(--brand-green);
    width: 20px;
    height: 20px;
}

.card-body {
    padding: 1.5rem;
}

.card-intro-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.text-center {
    text-align: center;
}

.justify-center {
    justify-content: center;
}

/* 
   ==========================================================================
   SPLIT LAYOUT & TABLES
   ========================================================================== 
*/

.split-layout {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.split-layout.invert-desktop {
    flex-direction: row;
}

.split-visual {
    flex: 1 1 42%;
    min-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.split-info {
    flex: 1.2 1 50%;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.chart-container {
    position: relative;
    width: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
}

.data-table th {
    background-color: rgba(30, 41, 59, 0.4);
    color: var(--text-secondary);
    font-weight: 700;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid rgba(51, 65, 85, 0.2);
    vertical-align: top;
    color: var(--text-primary);
}

.data-table tr:hover td {
    background-color: rgba(30, 41, 59, 0.25);
}

.data-table .cfc-tag {
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.data-table .cfc-tag::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.cfc-info::before {
    background-color: var(--brand-green);
    box-shadow: 0 0 8px var(--brand-green);
}

.cfc-media::before {
    background-color: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
}

/* Analysis descriptive block */
.analysis-box {
    background-color: rgba(30, 41, 59, 0.3);
    border-left: 3px solid var(--brand-green);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1rem 1.25rem;
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.analysis-header h4 {
    font-size: 0.9rem;
    font-weight: 700;
}

.analysis-header i {
    width: 16px;
    height: 16px;
    color: var(--brand-green);
}

.analysis-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* 
   ==========================================================================
   FLOW CHART: SOCIAL MEDIA -> DESTINATIONS
   ========================================================================== 
*/

.flow-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0.5rem 0;
}

.flow-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    padding: 0.85rem 1rem;
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition-fast);
}

.flow-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
    background-color: rgba(15, 23, 42, 0.8);
}

.flow-source {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.flow-source.linkedin {
    color: #0a66c2;
}

.flow-source.instatiktok {
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.flow-connector {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    color: var(--text-muted);
    position: relative;
}

.flow-arrow {
    width: 100%;
    height: 2px;
    background-color: var(--border-color);
    position: relative;
    margin-top: 4px;
}

.flow-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--text-muted);
    border-right: 2px solid var(--text-muted);
    transform: rotate(45deg);
}

.flow-target {
    flex: 1.5;
    text-align: right;
    font-size: 0.82rem;
}

.flow-target-pages {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.flow-target-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* 
   ==========================================================================
   GA4 EXPLORATION SIMULATOR WIDGET
   ========================================================================== 
*/

.ga4-sim-box {
    display: flex;
    background-color: #0b0f19;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    min-height: 230px;
}

.sim-sidebar {
    width: 110px;
    background-color: rgba(15, 23, 42, 0.6);
    border-right: 1px solid var(--border-color);
    padding: 0.75rem 0;
    display: flex;
    flex-direction: column;
}

.sim-group-title {
    font-size: 0.62rem;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.25rem 0.75rem 0.5rem;
}

.sim-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.6rem 0.75rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
    border-left: 2px solid transparent;
}

.sim-item:hover {
    color: var(--text-primary);
    background-color: rgba(30, 41, 59, 0.3);
}

.sim-item.active {
    color: white;
    background-color: rgba(0, 150, 57, 0.08);
    border-left-color: var(--brand-green);
    font-weight: 600;
}

.sim-bullet {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 800;
    color: white;
}

.sim-item[data-step="dimensions"] .sim-bullet { background-color: var(--brand-green); }
.sim-item[data-step="metrics"] .sim-bullet { background-color: var(--accent-blue); }
.sim-item[data-step="filters"] .sim-bullet { background-color: var(--accent-green); }

.sim-content {
    flex: 1;
    padding: 1rem 1.25rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sim-panel {
    display: none;
}

.sim-panel.active {
    display: block;
    animation: fadeIn var(--transition-fast) forwards;
}

.sim-panel h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sim-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sim-list li {
    font-size: 0.8rem;
    padding: 0.4rem 0.65rem;
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: monospace;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: max-content;
}

.sim-list li::before {
    content: '::';
    color: var(--brand-green);
    font-weight: bold;
}

.sim-filter-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.sim-filter-item {
    font-size: 0.78rem;
    padding: 0.5rem;
    background-color: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-sm);
    line-height: 1.4;
}

.sim-filter-field {
    font-weight: 700;
    color: #4ade80;
    font-family: monospace;
}

.sim-filter-cond {
    color: var(--text-secondary);
}

.sim-filter-val {
    background-color: rgba(30, 41, 59, 0.6);
    padding: 0.05rem 0.3rem;
    border-radius: 3px;
    font-family: monospace;
    color: white;
}

.sim-tip {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
    border-top: 1px solid rgba(51, 65, 85, 0.2);
    padding-top: 0.5rem;
    display: block;
}



/* 
   ==========================================================================
   MODAL DIALOG & PHONE FRAME PREVIEW
   ========================================================================== 
*/

/* Inline Introduction Card Styles */
.intro-card {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.6) 0%, rgba(9, 13, 22, 0.75) 100%);
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 150, 57, 0.05);
    transition: var(--transition-normal), border-color 0.3s ease, box-shadow 0.3s ease;
    scroll-margin-top: 1.5rem;
}

.intro-card:hover {
    border-color: rgba(0, 150, 57, 0.3);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 150, 57, 0.1);
}

.intro-grid-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

@keyframes introHighlight {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 150, 57, 0.6);
        border-color: var(--brand-green);
    }
    50% {
        box-shadow: 0 0 30px 10px rgba(0, 150, 57, 0.4);
        border-color: #4ade80;
    }
    100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 150, 57, 0.05);
        border-color: var(--border-color);
    }
}

.highlight-pulse {
    animation: introHighlight 1.8s ease-out 1;
}

@media (max-width: 900px) {
    .intro-grid-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.intro-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.intro-section h3 {
    font-family: 'Century Gothic', CenturyGothic, Questrial, AppleGothic, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    border-left: 3px solid var(--brand-green);
    padding-left: 0.75rem;
}

.intro-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    text-align: justify;
}

.intro-objectives {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.intro-objectives li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background-color: rgba(30, 41, 59, 0.25);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.intro-objectives li:hover {
    background-color: rgba(30, 41, 59, 0.4);
    border-color: rgba(0, 150, 57, 0.3);
    transform: translateY(-1px);
}

.obj-icon {
    background-color: var(--brand-green-glow);
    color: var(--brand-green);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.obj-icon i {
    width: 20px;
    height: 20px;
}

.obj-desc {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.obj-desc strong {
    font-size: 0.92rem;
    color: var(--text-primary);
}

.obj-desc span {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.btn-primary {
    background-color: var(--brand-green);
    color: white;
}

.btn-primary:hover {
    background-color: var(--brand-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--brand-green-glow);
}



/* 
   ==========================================================================
   FOOTER
   ========================================================================== 
*/

.app-footer {
    border-top: 1px solid var(--border-color);
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* 
   ==========================================================================
   KEYFRAMES & ANIMATIONS
   ========================================================================== 
*/

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.25); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}



/* 
   ==========================================================================
   RESPONSIVE DESIGN SYSTEM
   ========================================================================== 
*/

@media (max-width: 1024px) {
    .dashboard-grid {
        flex-direction: column;
    }
    
    .grid-col-8, .grid-col-4 {
        flex: 1 1 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding: 1.5rem 1rem;
    }
    
    .app-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .split-layout {
        flex-direction: column;
    }
}

/* 
   ==========================================================================
   TABS, PERFORMANCE WIDGETS & CONVERSIONS
   ========================================================================== 
*/

.tabs-nav {
    display: flex;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 0.5rem;
}

.tab-btn {
    background-color: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.65rem 1.25rem;
    font-family: var(--font-family);
    font-size: 0.88rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-btn:hover {
    background-color: rgba(51, 65, 85, 0.5);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.tab-btn.active {
    background-color: rgba(0, 150, 57, 0.08);
    color: white;
    border-color: var(--brand-green);
    box-shadow: 0 0 12px var(--brand-green-glow);
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease-out forwards;
}

.tab-panel.active {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Performance Q&A Cards */
.perf-qa-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.perf-qa-item {
    background-color: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-blue);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1rem;
    transition: var(--transition-fast);
}

.perf-qa-item:hover {
    background-color: rgba(30, 41, 59, 0.3);
    border-left-color: var(--brand-green);
}

.perf-qa-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.perf-qa-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Custom progress bar in table cell */
.progress-cell-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.progress-cell-val {
    min-width: 45px;
    font-weight: 600;
}

.progress-cell-bar {
    flex: 1;
    height: 6px;
    background-color: rgba(51, 65, 85, 0.3);
    border-radius: 3px;
    overflow: hidden;
    min-width: 60px;
    max-width: 80px;
}

.progress-cell-fill {
    height: 100%;
    background-color: var(--brand-green);
    border-radius: 3px;
    width: 0%; /* populated dynamically */
    transition: width 1s ease-in-out;
}

/* Scrollable panels */
.scroll-vertical-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 480px;
    overflow-y: auto;
    padding-right: 0.35rem;
}

.scroll-vertical-container::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.scroll-vertical-container::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.1);
}

.scroll-vertical-container::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb {
    background: rgba(51, 65, 85, 0.4);
    border-radius: 3px;
}

.scroll-vertical-container::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 150, 57, 0.4);
}

/* Bias Cards */
.bias-card {
    background-color: rgba(245, 158, 11, 0.05);
    border: 1px solid rgba(245, 158, 11, 0.15);
    border-left: 3px solid #f59e0b;
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
}

.bias-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fbbf24;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.bias-card-title i,
.bias-card-title svg {
    width: 14px;
    height: 14px;
    display: inline-block;
}

.bias-card-detail {
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Suggestion Cards */
.suggestion-card {
    background-color: rgba(16, 185, 129, 0.03);
    border: 1px solid rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--accent-green);
    border-radius: var(--radius-md);
    padding: 0.85rem 1rem;
}

.suggestion-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #34d399;
    margin-bottom: 0.15rem;
}

.suggestion-card-metric {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
    margin-bottom: 0.35rem;
    display: block;
}

.suggestion-card-detail {
    font-size: 0.76rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* 
   ==========================================================================
   INTERACTIVE ANIMATIONS & FILTERS (BLOBS, SEARCH, CHIPS, EQUALIZER)
   ========================================================================== 
*/

/* Floating mesh gradient background blobs */
.bg-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -10;
    opacity: 0.08;
    pointer-events: none;
    animation: drift 25s infinite alternate ease-in-out;
}

.blob-green {
    width: 450px;
    height: 450px;
    background: var(--brand-green);
    top: -120px;
    left: -120px;
}

.blob-blue {
    width: 600px;
    height: 600px;
    background: var(--accent-blue);
    bottom: -150px;
    right: -150px;
    animation-delay: -6s;
    animation-duration: 30s;
}

.blob-purple {
    width: 350px;
    height: 350px;
    background: var(--accent-purple);
    top: 45%;
    left: 45%;
    animation-delay: -12s;
    animation-duration: 22s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, 100px) scale(1.15); }
    100% { transform: translate(-40px, 60px) scale(0.9); }
}

/* Card hover scaling and border highlights */
.dashboard-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 150, 57, 0.3);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 150, 57, 0.08);
}

/* Table Controls: Search Input & Category Chips */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(51, 65, 85, 0.3);
}

.search-input-wrap {
    position: relative;
    flex: 1 1 280px;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 52%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

#tableSearch {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.55rem 0.75rem 0.55rem 2.2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 0.82rem;
    transition: var(--transition-fast);
}

#tableSearch:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 8px rgba(0, 150, 57, 0.15);
    background-color: rgba(15, 23, 42, 0.9);
}

.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chip {
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem;
    font-family: var(--font-family);
    font-size: 0.76rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chip:hover {
    background-color: rgba(51, 65, 85, 0.6);
    color: white;
}

.chip.active {
    background-color: var(--brand-green);
    color: white;
    border-color: var(--brand-green);
    box-shadow: 0 0 10px rgba(0, 150, 57, 0.3);
}

/* Audio Visualizer Equalizer */
.story-audio-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    background-color: rgba(30, 41, 59, 0.4);
    padding: 4px 8px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    cursor: pointer;
}

.story-audio-wrap:hover {
    background-color: rgba(51, 65, 85, 0.5);
    border-color: var(--text-muted);
}

.btn-sound-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.btn-sound-toggle i,
.btn-sound-toggle svg {
    width: 14px;
    height: 14px;
}

.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 12px;
    width: 18px;
}

.eq-bar {
    width: 2.5px;
    background-color: var(--accent-green);
    border-radius: 1px;
    height: 3px;
    transition: height 0.1s ease;
}

/* Animation classes for active voiceover */
.equalizer.active .eq-bar {
    animation: eq 0.8s infinite alternate ease-in-out;
}

.equalizer.active .bar-1 { animation-delay: 0.1s; animation-duration: 0.6s; }
.equalizer.active .bar-2 { animation-delay: 0.3s; animation-duration: 0.9s; }
.equalizer.active .bar-3 { animation-delay: 0.5s; animation-duration: 0.7s; }
.equalizer.active .bar-4 { animation-delay: 0.2s; animation-duration: 0.5s; }

@keyframes eq {
    0% { height: 3px; }
    100% { height: 12px; }
}

/* Interactive Table Rows highlights on Geographic comparison click */
.data-table tr.interactive-row {
    cursor: pointer;
}

.data-table tr.highlighted-row td {
    background-color: rgba(0, 150, 57, 0.08) !important;
    border-bottom-color: var(--brand-green) !important;
}

/* Smooth fading rows for search filters */
#table-performance-body tr {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#table-performance-body tr.fade-out {
    width: 600px;
    height: 600px;
    background: var(--accent-blue);
    bottom: -150px;
    right: -150px;
    animation-delay: -6s;
    animation-duration: 30s;
}

.blob-purple {
    width: 350px;
    height: 350px;
    background: var(--accent-purple);
    top: 45%;
    left: 45%;
    animation-delay: -12s;
    animation-duration: 22s;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(80px, 100px) scale(1.15); }
    100% { transform: translate(-40px, 60px) scale(0.9); }
}

/* Card hover scaling and border highlights */
.dashboard-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 150, 57, 0.3);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 150, 57, 0.08);
}

/* Table Controls: Search Input & Category Chips */
.table-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed rgba(51, 65, 85, 0.3);
}

.search-input-wrap {
    position: relative;
    flex: 1 1 280px;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 52%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

#tableSearch {
    width: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-color);
    color: white;
    padding: 0.55rem 0.75rem 0.55rem 2.2rem;
    border-radius: var(--radius-md);
    font-family: var(--font-family);
    font-size: 0.82rem;
    transition: var(--transition-fast);
}

#tableSearch:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 8px rgba(0, 150, 57, 0.15);
    background-color: rgba(15, 23, 42, 0.9);
}

.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chip {
    background-color: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.4rem 0.85rem;
    font-family: var(--font-family);
    font-size: 0.76rem;
    font-weight: 500;
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.chip:hover {
    background-color: rgba(51, 65, 85, 0.6);
    color: white;
}

.chip.active {
    background-color: var(--brand-green);
    color: white;
    border-color: var(--brand-green);
    box-shadow: 0 0 10px rgba(0, 150, 57, 0.3);
}

/* Audio Visualizer Equalizer */
.story-audio-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    background-color: rgba(30, 41, 59, 0.4);
    padding: 4px 8px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    cursor: pointer;
}

.story-audio-wrap:hover {
    background-color: rgba(51, 65, 85, 0.5);
    border-color: var(--text-muted);
}

.btn-sound-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
}

.btn-sound-toggle i,
.btn-sound-toggle svg {
    width: 14px;
    height: 14px;
}

.equalizer {
    display: flex;
    align-items: flex-end;
    gap: 2.5px;
    height: 12px;
    width: 18px;
}

.eq-bar {
    width: 2.5px;
    background-color: var(--accent-green);
    border-radius: 1px;
    height: 3px;
    transition: height 0.1s ease;
}

/* Animation classes for active voiceover */
.equalizer.active .eq-bar {
    animation: eq 0.8s infinite alternate ease-in-out;
}

.equalizer.active .bar-1 { animation-delay: 0.1s; animation-duration: 0.6s; }
.equalizer.active .bar-2 { animation-delay: 0.3s; animation-duration: 0.9s; }
.equalizer.active .bar-3 { animation-delay: 0.5s; animation-duration: 0.7s; }
.equalizer.active .bar-4 { animation-delay: 0.2s; animation-duration: 0.5s; }

@keyframes eq {
    0% { height: 3px; }
    100% { height: 12px; }
}

/* Interactive Table Rows highlights on Geographic comparison click */
.data-table tr.interactive-row {
    cursor: pointer;
}

.data-table tr.highlighted-row td {
    background-color: rgba(0, 150, 57, 0.08) !important;
    border-bottom-color: var(--brand-green) !important;
}

/* Smooth fading rows for search filters */
#table-performance-body tr {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

#table-performance-body tr.fade-out {
    opacity: 0.15;
    pointer-events: none;
}

/* 
   ==========================================================================
   A4 PRINT STYLES (PDF EXPORT OPTIMIZED - DARK MODE LANDSCAPE BRAND AESTHETICS)
   ========================================================================== 
*/

@media print {
    /* Force browser to print exact colors, gradients, and backgrounds */
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    /* Page configuration for A4 landscape */
    @page {
        size: A4 landscape;
        margin: 8mm 10mm;
    }

    body {
        background-color: #090d16 !important;
        color: #f8fafc !important;
        padding: 0 !important;
        margin: 0 !important;
        background-image: 
            radial-gradient(at 0% 0%, rgba(0, 150, 57, 0.08) 0px, transparent 50%),
            radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.05) 0px, transparent 50%) !important;
        background-attachment: fixed !important;
        font-size: 9pt;
    }

    .dashboard-container {
        max-width: 100% !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }

    /* Hide interface components that are useless in a printed document */
    #btnPrint,
    .tabs-nav,
    .sim-sidebar,
    .sim-tip,
    .progress-cell-bar {
        display: none !important;
    }

    /* Force all panels to display in print layout */
    .tab-panel {
        display: block !important;
        opacity: 1 !important;
        animation: none !important;
    }

    .tab-panel#panel-performance {
        page-break-before: always;
        margin-top: 1.5rem;
    }

    /* Header styling with brand gradients */
    .main-title {
        color: #ffffff !important;
        background: linear-gradient(135deg, #ffffff 60%, #94a3b8) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        font-size: 18pt !important;
        margin-bottom: 2px !important;
    }

    .subtitle {
        color: #94a3b8 !important;
        font-size: 9.5pt !important;
    }

    /* Keep side-by-side columns in landscape print layout */
    .dashboard-grid {
        display: flex !important;
        flex-direction: row !important;
        gap: 1.25rem !important;
        width: 100% !important;
    }

    .grid-col-8 {
        flex: 2 1 65% !important;
        width: 65% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
    }

    .grid-col-4 {
        flex: 1 1 32% !important;
        width: 32% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
    }

    /* Premium glassmorphism-like card styles */
    .dashboard-card {
        background-color: rgba(17, 24, 39, 0.95) !important;
        border: 1px solid rgba(51, 65, 85, 0.7) !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
        border-radius: 12px !important;
        page-break-inside: avoid;
    }

    .card-header {
        border-bottom: 1px solid rgba(51, 65, 85, 0.5) !important;
        padding: 0.7rem 1.15rem !important;
    }

    .card-header h2 {
        color: #ffffff !important;
        font-size: 11pt !important;
    }

    .card-body {
        padding: 1.15rem !important;
    }

    /* KPI widgets optimization */
    .kpi-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .kpi-card {
        background-color: rgba(17, 24, 39, 0.9) !important;
        border: 1px solid rgba(51, 65, 85, 0.6) !important;
        padding: 0.75rem !important;
        box-shadow: none !important;
        border-radius: 8px !important;
        backdrop-filter: none !important;
    }

    .kpi-value {
        color: #ffffff !important;
        font-size: 12.5pt !important;
    }

    .kpi-title {
        color: #94a3b8 !important;
        font-size: 7.2pt !important;
    }

    .kpi-trend {
        font-size: 6.2pt !important;
    }

    .kpi-icon-wrap {
        width: 34px !important;
        height: 34px !important;
        border-radius: 6px !important;
    }

    .kpi-icon-wrap i {
        width: 17px !important;
        height: 17px !important;
    }

    /* Split layouts for graphs & tables */
    .split-layout {
        display: flex !important;
        flex-direction: row !important;
        gap: 1.25rem !important;
    }

    .split-visual {
        flex: 1 1 38% !important;
        max-width: 38% !important;
    }

    .split-info {
        flex: 1.5 1 58% !important;
        max-width: 58% !important;
    }

    .chart-container {
        min-height: 180px !important;
        height: 180px !important;
    }

    /* Premium analysis callout box */
    .analysis-box {
        background-color: rgba(30, 41, 59, 0.4) !important;
        border-left: 3px solid #009639 !important;
        padding: 0.7rem 0.9rem !important;
    }

    .analysis-text {
        color: #94a3b8 !important;
        font-size: 8pt !important;
    }

    .analysis-header h4 {
        color: #ffffff !important;
    }

    /* Data tables styling in print */
    .data-table th {
        background-color: rgba(30, 41, 59, 0.5) !important;
        color: #94a3b8 !important;
        border-bottom: 1px solid rgba(51, 65, 85, 0.5) !important;
        padding: 0.5rem !important;
        font-size: 7.2pt !important;
    }

    .data-table td {
        padding: 0.5rem !important;
        border-bottom: 1px solid rgba(51, 65, 85, 0.25) !important;
        color: #f8fafc !important;
        font-size: 7.8pt !important;
    }

    .data-table .cfc-tag {
        color: #ffffff !important;
    }

    /* Platform acquisition flows list */
    .flow-item {
        padding: 0.55rem 0.8rem !important;
        background-color: rgba(15, 23, 42, 0.6) !important;
        border: 1px solid rgba(51, 65, 85, 0.4) !important;
    }

    .flow-target-pages {
        color: #ffffff !important;
    }

    /* GA4 Exploration Simulator print presentation */
    .ga4-sim-box {
        background-color: #0b0f19 !important;
        border: 1px solid rgba(51, 65, 85, 0.5) !important;
        display: block !important;
        min-height: auto !important;
    }

    .sim-content {
        padding: 0.85rem !important;
    }

    .sim-panel {
        display: block !important;
        opacity: 1 !important;
        margin-bottom: 0.85rem !important;
    }

    .sim-panel h4 {
        color: #ffffff !important;
        margin-bottom: 0.4rem !important;
        font-size: 8.5pt !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding-bottom: 0.25rem;
    }

    .sim-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.3rem !important;
        margin-bottom: 0.45rem !important;
        list-style: none;
        padding: 0;
    }

    .sim-list li {
        font-size: 7.2pt !important;
        padding: 0.2rem 0.45rem !important;
        background-color: rgba(30, 41, 59, 0.6) !important;
        border: 1px dashed rgba(148, 163, 184, 0.5) !important;
        color: #f8fafc !important;
        border-radius: 4px;
    }

    .sim-filter-box {
        margin-bottom: 0 !important;
    }

    .sim-filter-item {
        padding: 0.35rem 0.55rem !important;
        background-color: rgba(0, 150, 57, 0.08) !important;
        border: 1px solid rgba(0, 150, 57, 0.25) !important;
        font-size: 7.2pt !important;
        border-radius: 4px;
    }

    .sim-filter-field {
        color: #4ade80 !important;
        font-weight: 600;
    }

    .sim-filter-val {
        color: #ffffff !important;
        font-weight: 600;
    }

    /* Print Footer adjustments */
    .app-footer {
        border-top: 1px solid rgba(51, 65, 85, 0.5) !important;
        padding: 0.65rem 0 !important;
        font-size: 7.2pt !important;
        color: #64748b !important;
        margin-top: 1.25rem !important;
    }

    /* Scroll Container Fixes for Print */
    .scroll-vertical-container {
        max-height: none !important;
        overflow: visible !important;
    }
    .table-responsive {
        overflow-x: visible !important;
    }
}

/* 
   ==========================================================================
   PDF GENERATION STYLES (body.generating-pdf)
   ========================================================================== 
*/
body.generating-pdf {
    background-color: #090d16 !important;
    color: #f8fafc !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 9pt;
}

body.generating-pdf .dashboard-container {
    max-width: 100% !important;
    width: 100% !important;
    gap: 0.75rem !important;
}

body.generating-pdf #btnPrint,
body.generating-pdf #btnOpenIntro,
body.generating-pdf .tabs-nav,
body.generating-pdf .sim-sidebar,
body.generating-pdf .sim-tip,
body.generating-pdf .progress-cell-bar,
body.generating-pdf .story-audio-wrap {
    display: none !important;
}

body.generating-pdf .tab-panel {
    display: block !important;
    opacity: 1 !important;
    animation: none !important;
}

body.generating-pdf .tab-panel#panel-performance {
    page-break-before: always;
    margin-top: 1.5rem;
}

body.generating-pdf .main-title {
    color: #ffffff !important;
    background: linear-gradient(135deg, #ffffff 60%, #94a3b8) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-size: 18pt !important;
    margin-bottom: 2px !important;
}

body.generating-pdf .subtitle {
    color: #94a3b8 !important;
    font-size: 9.5pt !important;
}

body.generating-pdf .dashboard-grid {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.25rem !important;
    width: 100% !important;
}

body.generating-pdf .grid-col-8 {
    flex: 2 1 65% !important;
    width: 65% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
}

body.generating-pdf .grid-col-4 {
    flex: 1 1 32% !important;
    width: 32% !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1.25rem !important;
}

body.generating-pdf .dashboard-card {
    background-color: rgba(17, 24, 39, 0.95) !important;
    border: 1px solid rgba(51, 65, 85, 0.7) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5) !important;
    border-radius: 12px !important;
    page-break-inside: avoid;
}

body.generating-pdf .card-header {
    border-bottom: 1px solid rgba(51, 65, 85, 0.5) !important;
    padding: 0.7rem 1.15rem !important;
}

body.generating-pdf .card-header h2 {
    color: #ffffff !important;
    font-size: 11pt !important;
}

body.generating-pdf .card-body {
    padding: 1.15rem !important;
}

body.generating-pdf .kpi-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 0.75rem !important;
    margin-bottom: 0.75rem !important;
}

body.generating-pdf .kpi-card {
    background-color: rgba(17, 24, 39, 0.9) !important;
    border: 1px solid rgba(51, 65, 85, 0.6) !important;
    padding: 0.75rem !important;
    box-shadow: none !important;
    border-radius: 8px !important;
}

body.generating-pdf .kpi-value {
    color: #ffffff !important;
    font-size: 12.5pt !important;
}

body.generating-pdf .kpi-title {
    color: #94a3b8 !important;
    font-size: 7.2pt !important;
}

body.generating-pdf .kpi-trend {
    font-size: 6.2pt !important;
}

body.generating-pdf .kpi-icon-wrap {
    width: 34px !important;
    height: 34px !important;
    border-radius: 6px !important;
}

body.generating-pdf .kpi-icon-wrap i {
    width: 17px !important;
    height: 17px !important;
}

body.generating-pdf .split-layout {
    display: flex !important;
    flex-direction: row !important;
    gap: 1.25rem !important;
}

body.generating-pdf .split-visual {
    flex: 1 1 38% !important;
    max-width: 38% !important;
}

body.generating-pdf .split-info {
    flex: 1.5 1 58% !important;
    max-width: 58% !important;
}

body.generating-pdf .chart-container {
    min-height: 180px !important;
    height: 180px !important;
}

body.generating-pdf .analysis-box {
    background-color: rgba(30, 41, 59, 0.4) !important;
    border-left: 3px solid #009639 !important;
    padding: 0.7rem 0.9rem !important;
}

body.generating-pdf .analysis-text {
    color: #94a3b8 !important;
    font-size: 8pt !important;
}

body.generating-pdf .analysis-header h4 {
    color: #ffffff !important;
}

body.generating-pdf .data-table th {
    background-color: rgba(30, 41, 59, 0.5) !important;
    color: #94a3b8 !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.5) !important;
    padding: 0.5rem !important;
    font-size: 7.2pt !important;
}

body.generating-pdf .data-table td {
    padding: 0.5rem !important;
    border-bottom: 1px solid rgba(51, 65, 85, 0.25) !important;
    color: #f8fafc !important;
    font-size: 7.8pt !important;
}

body.generating-pdf .data-table .cfc-tag {
    color: #ffffff !important;
}

body.generating-pdf .flow-item {
    padding: 0.55rem 0.8rem !important;
    background-color: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(51, 65, 85, 0.4) !important;
}

body.generating-pdf .flow-target-pages {
    color: #ffffff !important;
}

body.generating-pdf .ga4-sim-box {
    background-color: #0b0f19 !important;
    border: 1px solid rgba(51, 65, 85, 0.5) !important;
    display: block !important;
    min-height: auto !important;
}

body.generating-pdf .sim-content {
    padding: 0.85rem !important;
}

body.generating-pdf .sim-panel {
    display: block !important;
    opacity: 1 !important;
    margin-bottom: 0.85rem !important;
}

body.generating-pdf .sim-panel h4 {
    color: #ffffff !important;
    margin-bottom: 0.4rem !important;
    font-size: 8.5pt !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.25rem;
}

body.generating-pdf .sim-list {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.3rem !important;
    margin-bottom: 0.45rem !important;
    list-style: none;
    padding: 0;
}

body.generating-pdf .sim-list li {
    font-size: 7.2pt !important;
    padding: 0.2rem 0.45rem !important;
    background-color: rgba(30, 41, 59, 0.6) !important;
    border: 1px dashed rgba(148, 163, 184, 0.5) !important;
    color: #f8fafc !important;
    border-radius: 4px;
}

body.generating-pdf .sim-filter-box {
    margin-bottom: 0 !important;
}

body.generating-pdf .sim-filter-item {
    padding: 0.35rem 0.55rem !important;
    background-color: rgba(0, 150, 57, 0.08) !important;
    border: 1px solid rgba(0, 150, 57, 0.25) !important;
    font-size: 7.2pt !important;
    border-radius: 4px;
}

body.generating-pdf .sim-filter-field {
    color: #4ade80 !important;
    font-weight: 600;
}

body.generating-pdf .sim-filter-val {
    color: #ffffff !important;
    font-weight: 600;
}

body.generating-pdf .app-footer {
    border-top: 1px solid rgba(51, 65, 85, 0.5) !important;
    padding: 0.65rem 0 !important;
    font-size: 7.2pt !important;
    color: #64748b !important;
    margin-top: 1.25rem !important;
}

body.generating-pdf .scroll-vertical-container {
    max-height: none !important;
    overflow: visible !important;
}

body.generating-pdf .table-responsive {
    overflow-x: visible !important;
}

/* 
   ==========================================================================
   UTILITIES: LOADING SPINNER
   ========================================================================== 
*/
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin {
    animation: spin 1s linear infinite;
}
