      :root {
            --primary-color: #4a90e2;
            --success-color: #5cb85c;
            --warning-color: #f0ad4e;
            --danger-color: #d9534f;
            --info-color: #5bc0de;
        }
        
        body {
            background-color: #f8f9fa;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        .dashboard-header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 2rem 0;
            margin-bottom: 2rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        
        .stat-card {
            background: white;
            border-radius: 10px;
            padding: 1.5rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        
        .stat-icon {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }
        
        .grade-badge {
            font-size: 3rem;
            font-weight: bold;
            width: 100px;
            height: 100px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
        }
        
        .section-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: #333;
            border-left: 4px solid #667eea;
            padding-left: 1rem;
        }
        
        .chart-container {
            background: white;
            border-radius: 10px;
            padding: 1.5rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            height: 100%;
        }
        
        .insight-item {
            background: white;
            border-left: 4px solid #667eea;
            padding: 1rem 1.5rem;
            margin-bottom: 1rem;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        
        .progress-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.5rem;
            font-weight: 500;
        }
        
        .metric-row {
            display: flex;
            justify-content: space-between;
            padding: 0.75rem 0;
            border-bottom: 1px solid #eee;
        }
        
        .metric-row:last-child {
            border-bottom: none;
        }
        
        .metric-label {
            color: #666;
            font-weight: 500;
        }
        
        .metric-value {
            color: #333;
            font-weight: 600;
        }
        
        .loading-spinner {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 200px;
        }
        
        .error-message, .no-data-message {
            text-align: center;
            padding: 2rem;
            background: white;
            border-radius: 10px;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            margin: 2rem 0;
        }

        /* Print Styles */
        @media print {
            @page {
                margin: 0.5cm;
                size: portrait;
            }
            
            body {
                background: white !important;
                font-size: 10pt;
                color: black !important;
                margin: 0;
                padding: 0;
                line-height: 1.2;
            }
            
            .no-print {
                display: none !important;
            }
            
            .dashboard-header, .stat-card, .chart-container, .insight-item,
            .btn, .spinner-border, .fa-exclamation-triangle, .fa-chart-line {
                display: none !important;
            }
            
            #printVersion {
                display: block !important;
                width: 100%;
                margin: 0;
                padding: 0;
            }
            
            .print-table {
                width: 100%;
                border-collapse: collapse;
                margin: 0.3rem 0;
                page-break-inside: avoid;
                font-size: 9pt;
                table-layout: fixed;
            }
            
            .print-table th, .print-table td {
                border: 1px solid #ddd;
                padding: 4px;
                text-align: left;
                word-wrap: break-word;
            }
            
            .print-table th {
                background-color: #f5f5f5;
                font-weight: bold;
                text-align: center;
            }
            
            .print-section {
                margin-bottom: 0.8rem;
                page-break-inside: avoid;
            }
            
            .print-section-title {
                font-size: 1.1rem;
                font-weight: bold;
                margin-bottom: 0.3rem;
                padding-bottom: 0.2rem;
                border-bottom: 1px solid #333;
            }
            
            .print-subsection-title {
                font-size: 0.9rem;
                font-weight: bold;
                margin: 0.5rem 0 0.3rem 0;
            }
            
            .print-header {
                text-align: center;
                margin-bottom: 0.8rem;
                padding-bottom: 0.3rem;
                border-bottom: 1px solid #333;
            }
            
            .print-header h1 {
                font-size: 1.3rem;
                margin: 0.2rem 0;
            }
            
            .print-header p {
                font-size: 9pt;
                margin: 0.1rem 0;
            }
            
            .print-footer {
                text-align: center;
                margin-top: 0.8rem;
                padding-top: 0.3rem;
                border-top: 1px solid #ddd;
                font-size: 8pt;
            }
            
            canvas {
                display: none !important;
            }
            
            /* Compact table styling */
            .compact-table th,
            .compact-table td {
                padding: 2px 4px;
                font-size: 8pt;
            }
            
            /* Daily activity table specific styling */
            .daily-activity-table th,
            .daily-activity-table td {
                padding: 2px 3px;
                font-size: 7pt;
                text-align: center;
            }
            
            .daily-activity-table th:nth-child(1),
            .daily-activity-table td:nth-child(1) {
                width: 15%;
            }
            
            .daily-activity-table th:nth-child(2),
            .daily-activity-table td:nth-child(2),
            .daily-activity-table th:nth-child(3),
            .daily-activity-table td:nth-child(3),
            .daily-activity-table th:nth-child(4),
            .daily-activity-table td:nth-child(4),
            .daily-activity-table th:nth-child(5),
            .daily-activity-table td:nth-child(5),
            .daily-activity-table th:nth-child(6),
            .daily-activity-table td:nth-child(6) {
                width: 17%;
            }
        }
        
        #printVersion {
            display: none;
        }
        
        @media (max-width: 1400px) {
            .stat-card {
                padding: 1.25rem;
            }
        }
        
        @media (max-width: 992px) {
            .chart-container {
                margin-bottom: 1.5rem;
            }
        }