/* Base Styles */
.font-geist-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Prevent zooming */
html {
    touch-action: manipulation;
}

/* Custom Components */
.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
}

/* Charts styling */
canvas {
    max-width: 100%;
}

.chart-caption {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 8px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
    font-size: 12px;
}

.chart-legend-item {
    display: flex;
    align-items: center;
}

.color-box {
    width: 12px;
    height: 12px;
    margin-right: 4px;
    border-radius: 2px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 4px;
}

th {
    font-weight: 500;
    letter-spacing: 0.05em;
}

tr {
    transition: background-color 0.15s ease;
}

tbody tr:hover {
    background-color: rgba(243, 244, 246, 0.5);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Navigation styles */
nav a {
    position: relative;
    padding-bottom: 2px;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #00b0f0;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Section spacing */
section {
    margin-bottom: 2.5rem;
    padding-top: 0.5rem;
}

.mb-12 {
    margin-bottom: 2.5rem;
}

.mb-10 {
    margin-bottom: 2rem;
}

.gap-6 {
    gap: 1.5rem;
}

/* Print styles */
@media print {
    body {
        color: #000;
        background: #fff;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    .no-print {
        display: none;
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    header.fixed {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 50;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    canvas {
        height: auto !important;
        max-height: 250px;
    }
    
    .mb-12 {
        margin-bottom: 2rem;
    }
    
    .gap-6 {
        gap: 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.stat-card {
    animation: fadeIn 0.5s ease-in-out;
}

/* Chart tooltip customization */
.chart-tooltip {
    background-color: rgba(255, 255, 255, 0.95) !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    padding: 8px 12px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 12px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
