/* test/css/styles.css */
:root {
    --bg-primary: #0A0A0A; /* Dark base */
    --bg-secondary: #1F2937; /* Card bg */
    --accent: #6366F1; /* Indigo for ETH */
    --text-primary: #D1D5DB; /* Light gray */
    --text-secondary: #9CA3AF;
    --positive: #10B981; /* Green */
    --negative: #EF4444; /* Red */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.dark-theme {
    /* Already set via root */
}

h1, h2, h3 {
    color: var(--accent);
}

.card, .chart-wrapper, .table-wrapper {
    background: var(--bg-secondary);
    border: 1px solid rgba(99, 102, 241, 0.2); /* Subtle accent border */
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
}

.card:hover, .chart-wrapper:hover, .table-wrapper:hover {
    box-shadow: 0 6px 12px rgba(99, 102, 241, 0.3);
}

.hero {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

a {
    color: var(--accent);
    transition: color 0.3s ease;
}

a:hover {
    color: #A5B4FC; /* Lighter indigo */
}

/* Chart and Table Styles (keep existing, but override with vars) */
#priceChart, #volumeChart /* etc. */ {
    background: transparent; /* Let wrapper handle bg */
    border: none;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

section {
    animation: fadeIn 0.5s ease-in;
}

/* Colorblind Theme (Override) */
body.colorblind-theme {
    --bg-primary: #F9FAFB;
    --bg-secondary: #FFFFFF;
    --accent: #4F46E5;
    --text-primary: #374151;
    --text-secondary: #6B7280;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* css/styles.css (updated with expandable styles) */
/* ... (Keep your existing styles, append this) */

/* Expandable Sections */
details {
    background: var(--bg-secondary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

summary {
    padding: 1rem;
    cursor: pointer;
    font-weight: bold;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

summary::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

details[open] summary::after {
    content: '-';
    transform: rotate(180deg);
}

details[open] .content {
    padding: 1rem;
    animation: fadeIn 0.3s ease-in;
}

/* Tooltips */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 10;
    box-shadow: var(--shadow);
}

/* Drill-Down Sub-Charts (Hidden Initially) */
.sub-chart {
    display: none;
    margin-top: 1rem;
}

/* Minimalist Adjustments */
.card {
    cursor: pointer; /* For clickable cards */
}

body.colorblind-theme h1, body.colorblind-theme h2, body.colorblind-theme h3 {
    color: #4F46E5; /* Dark indigo/purple for visibility on light bg */
}
body.colorblind-theme #themeToggle svg path {
    stroke: #4F46E5; /* Dark purple for visibility on light bg */
}
/* css/styles.css (updated tooltips) */
/* ... (Keep existing) */

/* Tooltips */
[title] {
    position: relative;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    white-space: normal; /* Allow text wrapping */
    max-width: 300px; /* Limit width to encourage wrapping */
    text-align: center; /* Center text for better readability */
    z-index: 10;
    box-shadow: var(--shadow);
    border: 1px solid var(--accent); /* Add border for visibility */
}

/* Add arrow to tooltip for obviousness */
[title]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% - 6px); /* Position arrow below tooltip */
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--accent) transparent transparent transparent; /* Arrow pointing up */
    z-index: 10;
}
/* styles.css */
/* Price Flash Animation */
.price-up {
    color: #10B981; /* Green */
    transition: color 2s ease;
    /*transition-delay: 20s;*/
}

.price-down {
    color: #EF4444; /* Red */
    transition: color 2s ease;
    /*transition-delay: 20s;*/
}
/* css/mstyles.css (append to existing) */

#mainNav {
    background: var(--bg-primary);
    box-shadow: var(--shadow);
}

#mainNav a {
    transition: color 0.3s ease, transform 0.3s ease;
}

#mainNav a:hover {
    color: #A5B4FC; /* Lighter indigo */
    transform: scale(1.05); /* Subtle scale-up */
}

#mainNav .active {
    background: rgba(99, 102, 241, 0.2); /* Highlight active */
    border-radius: 4px;
    padding: 0.25rem 0.5rem;
}

#hamburger i {
    transition: transform 0.3s ease;
}

#mobileNav.active {
    display: flex !important; /* Toggle visibility */
}

html {
    scroll-behavior: smooth; /* Smooth scrolling */
}

/* Colorblind adjustments */
body.colorblind-theme #mainNav {
    background: #E5E7EB; /* Light gray */
}

body.colorblind-theme #mainNav a {
    color: #4F46E5;
}

body.colorblind-theme #mainNav a:hover {
    color: #6366F1;
}
/* css/mstyles.css (append) */
.progress-bar {
    background: rgba(255, 255, 255, 0.1); /* Fallback bg */
    border-radius: 10px;
    overflow: hidden;
    transition: width 0.5s ease;
}

body.colorblind-theme .progress-bar {
    background: rgba(0, 0, 0, 0.1);
}