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

::-webkit-scrollbar-track {
    background: #1a202c;
}

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

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

/* Custom styles for the dashboard */
body {
    font-family: 'Inter', sans-serif;
}

/* Smooth transitions for theme changes */
.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom table styles */
table {
    border-collapse: separate;
    border-spacing: 0;
}

th, td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #2d3748;
}

tr:hover td {
    background-color: #2d3748;
}

/* Custom chart container */
.chart-container {
    position: relative;
    height: 100%;
    min-height: 300px;
}

/* Custom tooltip styles */
.tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    pointer-events: none;
    z-index: 100;
    font-size: 0.875rem;
}

/* Custom badge styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-normal {
    background-color: rgba(74, 222, 128, 0.1);
    color: #4ade80;
}

.badge-abnormal {
    background-color: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

.badge-yes {
    background-color: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
}

.badge-no {
    background-color: rgba(156, 163, 175, 0.1);
    color: #9ca3af;
}

.badge-error {
    background-color: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}