@charset "UTF-8";
/* CSS Document */

        :root {
            --congo-green: #009639;
            --congo-yellow: #FBDE4A;
            --congo-red: #DC241F;
            --primary: #0D47A1;
            --primary-light: #1976D2;
            --success: #00C853;
            --success-light: #69F0AE;
            --warning: #FF9800;
            --warning-light: #FFB74D;
            --danger: #F44336;
            --danger-light: #EF5350;
            --info: #2196F3;
            --purple: #7C4DFF;
            --cyan: #00BCD4;
            --pink: #E91E63;
            --teal: #009688;
            
            --bg-dark: #0a0e17;
            --bg-card: #111827;
            --bg-card-hover: #1a2332;
            --bg-surface: #1e293b;
            --bg-input: #0f172a;
            
            --border-color: rgba(255, 255, 255, 0.08);
            --border-light: rgba(255, 255, 255, 0.12);
            
            --text-primary: #f1f5f9;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            
            --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
            
            --sidebar-width: 280px;
            --header-height: 70px;
        }

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

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background: var(--bg-dark);
            color: var(--text-primary);
            min-height: 100vh;
            overflow-x: hidden;
        }

        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg-dark);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--bg-surface);
            border-radius: 4px;
        }

        .app-container {
            display: flex;
            min-height: 100vh;
        }

        /* Sidebar */
        .sidebar {
            width: var(--sidebar-width);
            background: var(--bg-card);
            border-right: 1px solid var(--border-color);
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            z-index: 100;
            display: flex;
            flex-direction: column;
        }

        .sidebar-header {
            padding: 24px;
            border-bottom: 1px solid var(--border-color);
        }

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

        .logo-icon {
            width: 48px;
            height: 48px;
            background: linear-gradient(135deg, var(--congo-green), var(--congo-yellow), var(--congo-red));
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            color: white;
        }

        .logo-title {
            font-size: 20px;
            font-weight: 800;
            background: linear-gradient(135deg, var(--congo-green), var(--congo-yellow));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .logo-subtitle {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .sidebar-nav {
            flex: 1;
            padding: 16px 12px;
            overflow-y: auto;
        }

        .nav-section-title {
            font-size: 10px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 1.5px;
            padding: 8px 12px;
            margin: 16px 0 8px;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            border-radius: 10px;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
            margin-bottom: 4px;
        }

        .nav-item:hover {
            background: var(--bg-surface);
            color: var(--text-primary);
        }

        .nav-item.active {
            background: linear-gradient(135deg, rgba(0, 150, 57, 0.2), rgba(0, 150, 57, 0.1));
            color: var(--congo-green);
            border: 1px solid rgba(0, 150, 57, 0.3);
        }

        .nav-item i {
            width: 20px;
            font-size: 16px;
        }

        /* Main Content */
        .main-content {
            flex: 1;
            margin-left: var(--sidebar-width);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Top Header */
        .top-header {
            height: var(--header-height);
            background: var(--bg-card);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 32px;
            position: sticky;
            top: 0;
            z-index: 50;
        }

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

        .page-title {
            font-size: 20px;
            font-weight: 700;
        }

        .header-breadcrumb {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-muted);
        }

        .header-breadcrumb a {
            color: var(--text-secondary);
            text-decoration: none;
        }

        .header-breadcrumb a:hover {
            color: var(--congo-green);
        }

        .header-right {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .header-time {
            text-align: right;
        }

        .header-clock {
            font-size: 20px;
            font-weight: 700;
        }

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

        .header-btn {
            width: 40px;
            height: 40px;
            background: var(--bg-surface);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .header-btn:hover {
            background: var(--bg-card-hover);
            color: var(--text-primary);
        }

        /* Content */
        .page-content {
            flex: 1;
            padding: 24px 32px;
            overflow-y: auto;
        }

        /* Summary Row */
        .summary-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 24px;
        }

        .summary-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 24px;
            display: flex;
            align-items: center;
            gap: 20px;
            transition: all 0.2s ease;
        }

        .summary-card:hover {
            border-color: var(--border-light);
            transform: translateY(-2px);
        }

        .summary-icon {
            width: 60px;
            height: 60px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
        }

        .summary-icon.green {
            background: rgba(0, 200, 83, 0.15);
            color: var(--success);
        }

        .summary-icon.blue {
            background: rgba(33, 150, 243, 0.15);
            color: var(--info);
        }

        .summary-icon.purple {
            background: rgba(124, 77, 255, 0.15);
            color: var(--purple);
        }

        .summary-icon.orange {
            background: rgba(255, 152, 0, 0.15);
            color: var(--warning);
        }

        .summary-content {
            flex: 1;
        }

        .summary-value {
            font-size: 32px;
            font-weight: 800;
            line-height: 1;
        }

        .summary-label {
            font-size: 13px;
            color: var(--text-muted);
            margin-top: 6px;
        }

        .summary-change {
            font-size: 12px;
            font-weight: 600;
            margin-top: 6px;
            display: flex;
            align-items: center;
            gap: 4px;
        }

        .summary-change.up {
            color: var(--success);
        }

        .summary-change.down {
            color: var(--danger);
        }

        /* Card Component */
        .card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            overflow: hidden;
            margin-bottom: 24px;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            border-bottom: 1px solid var(--border-color);
        }

        .card-title {
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 16px;
            font-weight: 700;
        }

        .card-title i {
            color: var(--congo-green);
        }

        .card-subtitle {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 4px;
        }

        .card-actions {
            display: flex;
            gap: 8px;
        }

        .card-btn {
            padding: 8px 16px;
            background: var(--bg-surface);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            font-size: 12px;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .card-btn:hover {
            background: var(--bg-card-hover);
            color: var(--text-primary);
        }

        .card-btn.primary {
            background: var(--congo-green);
            border-color: var(--congo-green);
            color: white;
        }

        .card-body {
            padding: 24px;
        }

        .card-body.no-padding {
            padding: 0;
        }

        /* Grids */
        .grid-2 {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
        }

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

        /* Chart Container */
        .chart-container {
            height: 400px;
            position: relative;
        }

        .chart-container.small {
            height: 300px;
        }

        .chart-container.large {
            height: 500px;
        }

        /* Winner Hero Section */
        .winner-hero {
            background: linear-gradient(135deg, rgba(0, 150, 57, 0.15), rgba(0, 150, 57, 0.05));
            border: 2px solid var(--congo-green);
            border-radius: 20px;
            padding: 32px;
            margin-bottom: 24px;
            position: relative;
            overflow: hidden;
        }

        .winner-hero::before {
            content: '🏆';
            position: absolute;
            top: -30px;
            right: -30px;
            font-size: 180px;
            opacity: 0.1;
            transform: rotate(-15deg);
        }

        .winner-hero-content {
            display: flex;
            align-items: center;
            gap: 32px;
            position: relative;
            z-index: 1;
        }

        .winner-photo-large {
            width: 140px;
            height: 140px;
            border-radius: 24px;
            background: linear-gradient(135deg, var(--primary), var(--primary-light));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 56px;
            font-weight: 800;
            color: white;
            box-shadow: 0 15px 40px rgba(0,0,0,0.3);
            flex-shrink: 0;
        }

        .winner-info {
            flex: 1;
        }

        .winner-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--congo-green);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            margin-bottom: 16px;
        }

        .winner-name {
            font-size: 36px;
            font-weight: 800;
            margin-bottom: 8px;
        }

        .winner-party {
            font-size: 18px;
            color: var(--text-secondary);
            margin-bottom: 24px;
        }

        .winner-stats {
            display: flex;
            gap: 40px;
        }

        .winner-stat {
            display: flex;
            flex-direction: column;
        }

        .winner-stat-value {
            font-size: 32px;
            font-weight: 800;
            color: var(--congo-green);
        }

        .winner-stat-label {
            font-size: 12px;
            color: var(--text-muted);
            text-transform: uppercase;
            margin-top: 4px;
        }

        /* Data Tables */
        .data-table {
            width: 100%;
            border-collapse: collapse;
        }

        .data-table th {
            text-align: left;
            padding: 16px 20px;
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-surface);
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .data-table td {
            padding: 18px 20px;
            font-size: 14px;
            border-bottom: 1px solid var(--border-color);
            vertical-align: middle;
        }

        .data-table tbody tr {
            transition: background 0.2s ease;
        }

        .data-table tbody tr:hover {
            background: var(--bg-surface);
        }

        .data-table tbody tr.highlight {
            background: linear-gradient(90deg, rgba(0, 150, 57, 0.08), transparent);
            border-left: 4px solid var(--congo-green);
        }

        /* Candidate Photo */
        .candidate-photo {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 18px;
            font-weight: 700;
            color: white;
            flex-shrink: 0;
        }

        .candidate-cell {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .candidate-name {
            font-weight: 600;
            font-size: 15px;
        }

        .candidate-party {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        /* Candidate Colors */
        .color-1 { background: linear-gradient(135deg, #1e88e5, #1565c0); }
        .color-2 { background: linear-gradient(135deg, #43a047, #2e7d32); }
        .color-3 { background: linear-gradient(135deg, #fb8c00, #ef6c00); }
        .color-4 { background: linear-gradient(135deg, #8e24aa, #6a1b9a); }
        .color-5 { background: linear-gradient(135deg, #00acc1, #00838f); }
        .color-6 { background: linear-gradient(135deg, #c0ca33, #9e9d24); }
        .color-7 { background: linear-gradient(135deg, #6d4c41, #4e342e); }

        /* Progress Bars */
        .progress-bar {
            width: 100%;
            height: 10px;
            background: var(--bg-dark);
            border-radius: 5px;
            overflow: hidden;
        }

        .progress-fill {
            height: 100%;
            border-radius: 5px;
            transition: width 0.8s ease;
            position: relative;
        }

        .progress-fill::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0) 100%);
            animation: shimmer 2s infinite;
        }

        @keyframes shimmer {
            0% { transform: translateX(-100%); }
            100% { transform: translateX(100%); }
        }

        /* Rank Badges */
        .rank-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 10px;
            font-size: 18px;
            font-weight: 800;
        }

        .rank-badge.gold {
            background: linear-gradient(135deg, #FFD700, #FFA500);
            color: white;
            box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
        }

        .rank-badge.silver {
            background: linear-gradient(135deg, #C0C0C0, #A8A8A8);
            color: white;
            box-shadow: 0 4px 15px rgba(192, 192, 192, 0.3);
        }

        .rank-badge.bronze {
            background: linear-gradient(135deg, #CD7F32, #B8732E);
            color: white;
            box-shadow: 0 4px 15px rgba(205, 127, 50, 0.3);
        }

        .rank-badge.other {
            background: var(--bg-surface);
            color: var(--text-secondary);
        }

        /* Vote Values */
        .vote-value {
            font-weight: 700;
            font-size: 16px;
            font-variant-numeric: tabular-nums;
        }

        .vote-percent {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .vote-value.winner {
            color: var(--congo-green);
        }

        /* Status Badges */
        .status-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 700;
            text-transform: uppercase;
        }

        .status-badge.winner {
            background: rgba(0, 200, 83, 0.15);
            color: var(--success);
        }

        .status-badge.second {
            background: rgba(33, 150, 243, 0.15);
            color: var(--info);
        }

        .status-badge.third {
            background: rgba(255, 152, 0, 0.15);
            color: var(--warning);
        }

        .status-badge.qualified {
            background: rgba(100, 116, 139, 0.15);
            color: var(--text-muted);
        }

        /* Trend Indicators */
        .trend-up {
            color: var(--success);
            font-weight: 600;
        }

        .trend-down {
            color: var(--danger);
            font-weight: 600;
        }

        .trend-neutral {
            color: var(--text-muted);
        }

        /* Candidate Detail Cards */
        .candidate-detail-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            margin-bottom: 24px;
        }

        .candidate-detail-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 24px;
            transition: all 0.2s ease;
        }

        .candidate-detail-card:hover {
            border-color: var(--border-light);
        }

        .candidate-detail-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border-color);
        }

        .candidate-detail-photo {
            width: 56px;
            height: 56px;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 22px;
            font-weight: 700;
            color: white;
        }

        .candidate-detail-info h3 {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .candidate-detail-info p {
            font-size: 12px;
            color: var(--text-muted);
        }

        .candidate-detail-rank {
            margin-left: auto;
            font-size: 24px;
        }

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

        .candidate-stat-item {
            background: var(--bg-surface);
            border-radius: 10px;
            padding: 14px;
            text-align: center;
        }

        .candidate-stat-value {
            font-size: 20px;
            font-weight: 800;
        }

        .candidate-stat-label {
            font-size: 11px;
            color: var(--text-muted);
            margin-top: 4px;
        }

        /* Department Breakdown Table */
        .dept-breakdown {
            margin-top: 16px;
        }

        .dept-breakdown-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .dept-breakdown-item:last-child {
            border-bottom: none;
        }

        .dept-breakdown-name {
            width: 120px;
            font-size: 12px;
            font-weight: 500;
        }

        .dept-breakdown-bar {
            flex: 1;
            height: 8px;
            background: var(--bg-dark);
            border-radius: 4px;
            overflow: hidden;
        }

        .dept-breakdown-fill {
            height: 100%;
            border-radius: 4px;
        }

        .dept-breakdown-value {
            width: 50px;
            text-align: right;
            font-size: 13px;
            font-weight: 700;
        }

        /* Export Panel */
        .export-panel {
            display: flex;
            gap: 12px;
            padding: 20px 24px;
            background: var(--bg-surface);
            border-top: 1px solid var(--border-color);
        }

        .export-btn {
            padding: 12px 24px;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            border: none;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
        }

        .export-btn.excel {
            background: #107c41;
            color: white;
        }

        .export-btn.pdf {
            background: #dc2626;
            color: white;
        }

        .export-btn.csv {
            background: var(--purple);
            color: white;
        }

        .export-btn.print {
            background: var(--bg-card);
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }

        .export-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        /* Filter Bar */
        .filter-bar {
            display: flex;
            gap: 16px;
            margin-bottom: 24px;
            flex-wrap: wrap;
            align-items: flex-end;
        }

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

        .filter-label {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
        }

        .filter-select {
            padding: 12px 16px;
            background: var(--bg-surface);
            border: 1px solid var(--border-color);
            border-radius: 10px;
            font-size: 13px;
            color: var(--text-primary);
            cursor: pointer;
            min-width: 200px;
        }

        .filter-select:focus {
            outline: none;
            border-color: var(--congo-green);
        }

        .filter-btn {
            padding: 12px 24px;
            background: var(--congo-green);
            border: none;
            border-radius: 10px;
            font-size: 13px;
            font-weight: 600;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .filter-btn:hover {
            background: #00a83f;
        }

        /* Responsive */
        @media (max-width: 1400px) {
            .summary-row {
                grid-template-columns: repeat(2, 1fr);
            }
            
            .candidate-detail-grid {
                grid-template-columns: 1fr;
            }
        }

        @media print {
            .sidebar, .top-header, .card-actions, .export-panel, .filter-bar {
                display: none !important;
            }
            
            .main-content {
                margin-left: 0;
            }
        }
