/* ============================================
   PROFESSIONAL SURVEY DASHBOARD STYLES
   Bootstrap 5 Enhanced with Custom Styling
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* VBOS Brand Colors - From Vanuatu Bureau of Statistics Logo */
    --primary-blue: #3d5467;
    /* VBOS Dark Blue */
    --primary-dark: #2e3f4d;
    /* Darker shade */
    --primary-light: #547082;
    /* Lighter shade */
    --teal: #4db8ac;
    /* VBOS Teal (Login button) */
    --dark-teal: #3a9289;
    /* Darker teal */
    --light-blue: #70c8be;
    /* Lighter teal */

    /* Secondary VBOS Colors */
    --vbos-orange: #f59e0b;
    /* VBOS Orange (Register button) */
    --vbos-red: #c53030;
    /* VBOS Red (Logo shield) */
    --vbos-navy: #415566;
    /* VBOS Navy background */

    /* Neutrals */
    --dark-gray: #263238;
    --medium-gray: #546e7a;
    --light-gray: #eceff1;
    --border-gray: #cfd8dc;
    --bg-gray: #f8f9fa;

    /* Semantic Colors - Updated to match VBOS palette */
    --success: #4db8ac;
    /* Use VBOS teal for success */
    --success-light: #70c8be;
    --warning: #f59e0b;
    /* Use VBOS orange for warning */
    --warning-light: #fbbf24;
    --danger: #c53030;
    /* Use VBOS red for danger */
    --danger-light: #e57373;
    --info: #4db8ac;
    /* Use VBOS teal for info */
    --white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.18);

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #e8eef5 0%, #dde7f0 100%);
    color: var(--dark-gray);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   MAIN HEADER
   ============================================ */
.main-header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--vbos-navy) 100%);
    padding: 24px 40px;
    box-shadow: var(--shadow-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--teal);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.main-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-meta {
    display: flex;
    gap: 24px;
    align-items: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.status-dot {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    padding: 6px 14px;
    background: rgba(77, 184, 172, 0.2);
    border-radius: 20px;
    transition: var(--transition-base);
    border: 1px solid rgba(77, 184, 172, 0.4);
}

.status-dot.online {
    color: var(--teal);
    animation: pulse 2s ease-in-out infinite;
}

.status-dot.loading {
    color: var(--orange);
    background: rgba(255, 167, 38, 0.2);
    border: 1px solid rgba(255, 167, 38, 0.4);
    animation: loading-pulse 1s ease-in-out infinite;
}

.status-dot.offline {
    color: #e53e3e;
    background: rgba(229, 62, 62, 0.2);
    border: 1px solid rgba(229, 62, 62, 0.4);
}

@keyframes loading-pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* ============================================
   TAB NAVIGATION
   ============================================ */
.tab-navigation {
    background: white;
    border-bottom: 2px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    padding: 0 40px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 77px;
    z-index: 999;
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0 8px 0;
    font-size: 13px;
    color: var(--medium-gray);
    font-weight: 500;
}

.breadcrumb-nav i {
    color: var(--teal);
    font-size: 16px;
}

.breadcrumb-separator {
    color: var(--border-gray);
}

.current-tab-name {
    color: var(--dark-gray);
    font-weight: 700;
}

.tab-buttons-wrapper {
    display: flex;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--teal) var(--light-gray);
}

.tab-buttons-wrapper::-webkit-scrollbar {
    height: 4px;
}

.tab-buttons-wrapper::-webkit-scrollbar-track {
    background: var(--light-gray);
}

.tab-buttons-wrapper::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 2px;
}

.tab-btn {
    padding: 16px 28px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--medium-gray);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all var(--transition-base);
    white-space: nowrap;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tab-btn::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--teal), var(--primary-blue));
    transform: translateX(-50%);
    transition: width var(--transition-base);
}

.tab-btn:hover {
    color: var(--teal);
    background: linear-gradient(180deg, transparent 0%, rgba(77, 184, 172, 0.05) 100%);
}

.tab-btn:hover::before {
    width: 100%;
}

.tab-btn.active {
    color: var(--dark-gray);
    border-bottom-color: var(--teal);
    background: linear-gradient(180deg, transparent 0%, rgba(77, 184, 172, 0.08) 100%);
}

.tab-btn.active::before {
    width: 100%;
}

/* ============================================
   TAB CONTENT
   ============================================ */
.tab-content {
    display: none;
    padding: 30px 40px;
    min-height: calc(100vh - 200px);
    animation: fadeIn 0.4s ease-in-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ============================================
   COVER PAGE - REDESIGNED LAYOUT
   ============================================ */

/* Cover Header Section */
.cover-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--teal) 100%);
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-lg);
    color: white;
}

.cover-title-section {
    flex: 1;
}

.cover-main-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 10px 0;
    letter-spacing: -1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: slideBackAndForth 6s ease-in-out infinite;
    display: inline-block;
}

@keyframes slideBackAndForth {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(30px);
    }

    50% {
        transform: translateX(30px);
    }

    75% {
        transform: translateX(-30px);
    }

    100% {
        transform: translateX(0);
    }
}

.cover-subtitle {
    font-size: 18px;
    opacity: 0.9;
    margin: 0;
    font-weight: 400;
}

.cover-quick-stats {
    display: flex;
    gap: 30px;
    flex-direction: column;
    align-items: flex-end;
}

.quick-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.quick-stat-item i {
    font-size: 18px;
}

/* Main Content Grid */
.cover-content-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

/* Left Section - Metrics */
.cover-metrics-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
    display: flex;
    gap: 20px;
    align-items: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--teal);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.metric-card:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--teal);
}

.metric-card:hover::before {
    opacity: 1;
}

.metric-card.primary-metric {
    background: linear-gradient(135deg, var(--teal) 0%, #3a9d94 100%);
    color: white;
    padding: 32px 24px;
    border: none;
}

.metric-card.primary-metric::before {
    background: white;
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--teal) 0%, #3a9d94 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(77, 184, 172, 0.3);
}

.metric-icon.teal {
    background: linear-gradient(135deg, var(--teal) 0%, #3a9d94 100%);
}

.metric-icon.orange {
    background: linear-gradient(135deg, var(--vbos-orange) 0%, #e68900 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.metric-icon.navy {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #2d3f4f 100%);
    box-shadow: 0 4px 12px rgba(61, 84, 103, 0.3);
}

.primary-metric .metric-icon {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.metric-content {
    flex: 1;
}

.metric-value {
    font-size: 40px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.primary-metric .metric-value {
    color: white;
    font-size: 56px;
}

.metric-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.primary-metric .metric-label {
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
}

.metric-sublabel {
    font-size: 13px;
    color: var(--medium-gray);
    font-weight: 500;
}

.primary-metric .metric-sublabel {
    color: rgba(255, 255, 255, 0.85);
}

.metric-progress-bar {
    height: 6px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.metric-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal) 0%, #3a9d94 100%);
    border-radius: 3px;
    transition: width 0.5s ease;
}

/* Right Section - Chart */
.cover-chart-section {
    display: flex;
}

.chart-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-gray);
    width: 100%;
}

.chart-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-card-header h3 i {
    color: var(--teal);
}

.chart-legend-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--medium-gray);
    font-weight: 600;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.legend-dot.completed {
    background: var(--teal);
}

.chart-card canvas {
    max-height: 400px;
}

/* Bottom Stats Row */
.cover-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-tile {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-base);
}

.stat-tile:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}

.stat-tile>i {
    font-size: 32px;
    color: var(--teal);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(77, 184, 172, 0.1);
    border-radius: 10px;
}

.stat-tile-content {
    display: flex;
    flex-direction: column;
}

.stat-tile-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--dark-gray);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-tile-label {
    font-size: 12px;
    color: var(--medium-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Responsive Design for Cover Page */
@media (max-width: 1200px) {
    .cover-content-grid {
        grid-template-columns: 1fr;
    }

    .cover-metrics-section {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
}

@media (max-width: 768px) {
    .cover-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cover-quick-stats {
        align-items: flex-start;
        width: 100%;
    }

    .cover-main-title {
        font-size: 32px;
    }

    .cover-metrics-section {
        grid-template-columns: 1fr;
    }

    .cover-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   PAGE LAYOUT
   ============================================ */
.page-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-gray);
}

.page-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-gray);
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.page-header h2::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-blue), var(--teal));
    border-radius: 2px;
}

.content-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
}

.main-content.full-width {
    grid-column: 1 / -1;
}

/* ============================================
   SIDEBAR FILTERS
   ============================================ */
.sidebar-filters {
    background: white;
    padding: 24px;
    border-radius: 16px;
    height: fit-content;
    position: sticky;
    top: 110px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(30, 136, 229, 0.1);
    transition: all var(--transition-base);
}

.sidebar-filters:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 136, 229, 0.2);
}

.filter-section {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all var(--transition-base);
    cursor: pointer;
    font-weight: 500;
    color: var(--dark-gray);
}

.filter-select:hover {
    border-color: var(--teal);
    background: rgba(77, 184, 172, 0.02);
}

.filter-select:focus {
    outline: none;
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(77, 184, 172, 0.1);
}

/* ============================================
   KPI CARDS
   ============================================ */
.kpi-cards-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.kpi-card-large,
.kpi-card-medium {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 28px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--teal);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.kpi-card-large::before,
.kpi-card-medium::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(77, 184, 172, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.kpi-card-large:hover,
.kpi-card-medium:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-left-color: var(--vbos-orange);
}

.kpi-label {
    font-size: 13px;
    color: var(--medium-gray);
    margin-bottom: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.kpi-value-large {
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.kpi-value-medium {
    font-size: 40px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

/* ============================================
   CHARTS
   ============================================ */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.chart-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(77, 184, 172, 0.15);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.chart-panel::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(77, 184, 172, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.chart-panel:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: rgba(77, 184, 172, 0.3);
}

.chart-panel h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.3px;
}

.chart-panel canvas {
    position: relative;
    z-index: 1;
    max-height: 400px;
    width: 100% !important;
    height: 300px !important;
}

.chart-legend {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    font-size: 13px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--medium-gray);
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 20px;
    transition: all var(--transition-fast);
}

.legend-item:hover {
    background: rgba(77, 184, 172, 0.12);
    color: var(--teal);
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.dot.completed {
    background: var(--teal);
}

.dot.remaining {
    background: var(--light-blue);
}

.dot.expected {
    background: var(--primary-blue);
}

/* ============================================
   TABLES
   ============================================ */
.table-panel {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 32px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    margin-bottom: 30px;
    border: 1px solid rgba(77, 184, 172, 0.15);
    transition: all var(--transition-base);
}

.table-panel:hover {
    box-shadow: var(--shadow-lg);
}

.table-panel h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

margin-bottom: 16px;
}

.tree-table-container {
    max-height: 600px;
    overflow-y: auto;
    border-radius: 12px;
    border: 1px solid var(--border-gray);
    scrollbar-width: thin;
    scrollbar-color: var(--teal) var(--light-gray);
}

.tree-table-container::-webkit-scrollbar {
    width: 8px;
}

.tree-table-container::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 4px;
}

.tree-table-container::-webkit-scrollbar-thumb {
    background: var(--teal);
    border-radius: 4px;
}

.data-table,
.tree-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table th,
.tree-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 16px 20px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-gray);
    border-bottom: 3px solid var(--teal);
    position: sticky;
    top: 0;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td,
.tree-table td {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
    color: var(--dark-gray);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.tree-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(77, 184, 172, 0.08) 0%, rgba(77, 184, 172, 0.02) 100%);
    cursor: pointer;
}

.tree-table .expandable {
    cursor: pointer;
    font-weight: 700;
}

.tree-table .expandable:hover {
    background: linear-gradient(90deg, rgba(77, 184, 172, 0.12) 0%, rgba(77, 184, 172, 0.04) 100%);
}

.tree-table .tree-toggle {
    user-select: none;
}

.tree-table .toggle-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    margin-right: 8px;
    background: var(--teal);
    color: white;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    transition: all var(--transition-base);
    cursor: pointer;
}

.tree-table .toggle-icon:hover {
    background: var(--vbos-orange);
    transform: scale(1.1);
}

font-family: monospace;
font-size: 16px;
color: var(--teal);
font-weight: bold;
}

.tree-table .child-row {
    background: rgba(0, 0, 0, 0.02);
}

.tree-table .child-row:hover {
    background: rgba(77, 184, 172, 0.08);
}

.tree-table .child-row td:first-child {
    font-weight: 600;
    color: var(--medium-gray);
}

.tree-table .interview-ids {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: var(--medium-gray);
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
}

.tree-table .total-row {
    background: linear-gradient(90deg, rgba(77, 184, 172, 0.15) 0%, rgba(77, 184, 172, 0.08) 100%);
    font-weight: 800;
    border-top: 3px solid var(--teal);
    color: var(--dark-gray);
}

.tree-table .total-row:hover {
    background: linear-gradient(90deg, rgba(77, 184, 172, 0.2) 0%, rgba(77, 184, 172, 0.12) 100%);
}

/* ============================================
   STATUS BADGES
   ============================================ */
.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.status-badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.status-badge.active {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-light) 100%);
    color: white;
}

.status-badge.pending {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-light) 100%);
    color: white;
}

.status-badge.completed {
    background: linear-gradient(135deg, var(--teal) 0%, var(--light-blue) 100%);
    color: white;
}

.status-badge.rejected {
    background: linear-gradient(135deg, var(--danger) 0%, var(--danger-light) 100%);
    color: white;
}

/* ============================================
   TEAM COVERAGE STYLES
   ============================================ */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--dark-gray);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all var(--transition-fast);
    font-weight: 500;
}

.checkbox-label:hover {
    background: rgba(77, 184, 172, 0.08);
    color: var(--teal);
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: var(--teal);
    border-radius: 4px;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.team-item {
    padding: 10px 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    font-size: 13px;
    color: var(--dark-gray);
    font-weight: 600;
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
    cursor: pointer;
}

.team-item:hover {
    background: linear-gradient(135deg, rgba(77, 184, 172, 0.1) 0%, rgba(77, 184, 172, 0.05) 100%);
    border-left-color: var(--teal);
    transform: translateX(5px);
}

.top-filters-row {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(77, 184, 172, 0.05) 0%, rgba(61, 84, 103, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(77, 184, 172, 0.15);
}

.team-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.team-kpi-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    border-left: 5px solid var(--teal);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
}

.team-kpi-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(77, 184, 172, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.team-kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-left-color: var(--vbos-orange);
}

.team-kpi-card.placeholder {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.01) 100%);
    border-left-color: transparent;
    box-shadow: none;
}

.kpi-sub-label {
    font-size: 11px;
    color: var(--medium-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

gap: 16px;
margin-bottom: 30px;
}

.team-kpi-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-gray);
    text-align: center;
}

.team-kpi-card.placeholder {
    background: transparent;
    border: none;
}

.team-kpi-card .kpi-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
    font-weight: 600;
}

.team-kpi-card .kpi-sub-label {
    font-size: 11px;
    color: #999;
    font-style: italic;
    margin-bottom: 4px;
}

.team-kpi-card .kpi-value-large {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-gray);
}

/* ============================================
   TABLE TABS (Override duplicate styles)
   ============================================ */
.table-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-gray);
}

.table-tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-bottom: 3px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-tab-btn:hover {
    color: var(--teal);
    background: linear-gradient(180deg, transparent 0%, rgba(77, 184, 172, 0.05) 100%);
}

.table-tab-btn.active {
    color: var(--dark-gray);
    background: linear-gradient(180deg, transparent 0%, rgba(77, 184, 172, 0.08) 100%);
    border-bottom-color: var(--teal);
}

.table-tab-btn:hover:not(.active) {
    background: linear-gradient(180deg, transparent 0%, rgba(77, 184, 172, 0.03) 100%);
}

/* Status Badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
}

.status-badge.active {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-badge.pending {
    background: #fff3e0;
    color: #e65100;
}

.status-badge.completed {
    background: #e3f2fd;
    color: #1565c0;
}

.status-badge.warning {
    background: #fff3e0;
    color: #e65100;
}

/* Executive Summary */
.executive-summary {
    padding: 20px 0;
}

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

.summary-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.summary-card h3 {
    font-size: 16px;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.metrics-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.metric-name {
    font-weight: 600;
    color: #666;
}

.metric-val {
    font-weight: 700;
    color: var(--teal);
}

/* Findings Grid */
.findings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1400px) {
    .team-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-filters {
        position: static;
        margin-bottom: 24px;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .team-kpi-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .main-header h1 {
        font-size: 24px;
    }

    .tab-navigation {
        padding: 0 20px;
    }

    .tab-btn {
        padding: 14px 20px;
        font-size: 13px;
    }

    .tab-content {
        padding: 20px;
    }

    .cover-hero {
        padding: 40px 30px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .kpi-cards-row {
        grid-template-columns: 1fr;
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .findings-grid {
        grid-template-columns: 1fr;
    }

    .top-filters-row {
        flex-direction: column;
        gap: 12px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-hover {
    transition: box-shadow var(--transition-base);
}

.shadow-hover:hover {
    box-shadow: var(--shadow-xl);
}

.slide-up {
    animation: slideUp 0.4s ease-in-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   KEYBOARD SHORTCUTS HELPER
   ============================================ */
.shortcuts-helper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.shortcuts-toggle {
    background: var(--teal);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.shortcuts-toggle:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.shortcuts-toggle i {
    font-size: 18px;
}

.shortcuts-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-xl);
    min-width: 320px;
    border: 1px solid var(--border-gray);
}

.shortcuts-panel h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-gray);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--teal);
}

.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    padding: 8px 0;
}

.shortcut-item span {
    color: var(--medium-gray);
    font-weight: 500;
}

kbd {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid var(--border-gray);
    border-radius: 4px;
    padding: 4px 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--dark-gray);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    display: inline-block;
    min-width: 24px;
    text-align: center;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .tab-navigation,
    .sidebar-filters {
        display: none;
    }

    .tab-content {
        display: block !important;
        page-break-after: always;
    }

    .chart-panel,
    .kpi-card-large,
    .table-panel {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

.tab-content {
    padding: 20px;
}

.cover-hero {
    padding: 30px;
}

.hero-stats {
    grid-template-columns: 1fr;
}
}