
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: #111827;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Glassmorphism Enhancement */
.backdrop-blur-sm {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Metric Card Animations */
.metric-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.metric-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s;
}

.metric-card:hover::before {
    left: 100%;
}

/* Chart Container Optimizations */
canvas {
    max-width: 100%;
    height: auto !important;
}

/* Biomarker Item Hover */
.biomarker-item {
    transition: all 0.2s ease;
}

.biomarker-item:hover {
    transform: scale(1.05);
    background: rgba(17, 24, 39, 0.7);
}

/* Loading Animation */
@keyframes pulse-glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.animate-pulse-glow {
    animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive Typography */
@media (max-width: 640px) {
    html {
        font-size: 14px;
    }
}
/* Behavior Tracker Styles */
#behaviorTrackerContainer .behavior-btn {
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#behaviorTrackerContainer .behavior-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#behaviorTrackerContainer .behavior-btn:active {
    transform: translateY(0);
}

#behaviorTrackerContainer h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
}

#behaviorTrackerContainer .grid.max-h-96 {
    max-height: 24rem;
    overflow-y: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Custom Focus States */
button:focus, a:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* Dark Mode Specific */
.dark {
    color-scheme: dark;
}
