/* styles.css */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-primary: #111827;
    --bg-secondary: #1f2937;    /* gray-800 */
    --bg-tertiary: #374151;     /* gray-700 */
    --bg-hover: #374151;        /* gray-700 for hover */
    --text-primary: #f9fafb;    /* gray-50 */
    --text-secondary: #9ca3af;  /* gray-400 */
    --border-color: #374151;     /* gray-700 */
    --accent-primary: #7733EB;  /* violet-500 */
    --accent-hover: #8758F4;    /* violet-600 */
    --accent-link-bright: #c4b5fd; /* violet-300 from your gradient */
    --accent-disabled: #4a5568;
    --text-on-accent: #ffffff;
    --font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --border-radius: 8px;
    --box-shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.2);
    --box-shadow-strong: 0 4px 12px rgba(0, 0, 0, 0.4);
}

html {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}
body.modal-open-body {
    overflow: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 25px;
}

/* Custom gradient text from your landing page */
.gradient-text {
    background: linear-gradient(90deg, #c4b5fd, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


/* --- Header & Navigation (Updated to match landing page) --- */
header {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    background-color: rgba(17, 24, 39, 0.5); /* gray-900 with transparency */
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow-strong);
}

header h1 {
    font-size: 2.4em;
    margin: 0 0 20px 0;
    font-weight: 700;
    color: var(--text-primary);
}

.header-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

nav {
    background-color: transparent;
    padding: 0;
    border-radius: var(--border-radius);
    text-align: center;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 12px;
    background-color: var(--bg-secondary);
    padding: 8px;
    border-radius: var(--border-radius);
	border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow-soft);
}

nav li {
    margin: 0;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

nav a:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    text-decoration: none;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

nav a.active {
    background-color: var(--accent-hover);
    color: var(--text-on-accent);
    font-weight: 600;
    box-shadow: 0 2px 5px rgba(139, 92, 246, 0.3);
}

/* --- Search --- */
.search-container {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 600px;
}

.search-container input[type="text"] {
    flex-grow: 1;
    padding: 12px 15px;
    font-size: 1em;
    border: 1px solid var(--border-color);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border-radius: var(--border-radius);
    outline: none;
    transition: border-color 0.2s ease;
}
.search-container input[type="text"]::placeholder { color: var(--text-secondary); opacity: 0.7; }
.search-container input[type="text"]:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3); }
.search-container button { padding: 12px 22px; white-space: nowrap; }


/* --- Main Content & Sections --- */
main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

section {
    background-color: var(--bg-secondary);
    padding: 30px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-soft);
    border: 1px solid var(--border-color);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--accent-primary);
    padding-bottom: 15px;
}
.section-header h2 { margin: 0; font-size: 1.8em; font-weight: 600; }


/* --- Tables --- */
.data-table {
    overflow-x: auto;
}
.data-display-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: transparent;
    table-layout: fixed;
}
.data-display-table th, 
.data-display-table td {
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    text-align: left; /* Default alignment */
    vertical-align: middle;
    word-wrap: break-word;
}
.data-display-table th {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.98em;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.data-display-table td { 
    background-color: var(--bg-secondary); 
    color: var(--text-secondary); 
    font-size: 0.9em; 
}
.data-display-table td[data-label="Hash"], 
.data-display-table td[data-label="Transaction ID"] {
    font-family: 'Courier New', Courier, monospace; 
    font-size: 0.85em; 
    line-height: 1.4; 
}

/* --- FIX: Updated table link color for better contrast --- */
.data-display-table td a {
    color: var(--accent-link-bright); /* Use bright color */
    font-weight: 500;
}
.data-display-table td a:hover {
    color: var(--accent-hover); /* Keep darker hover */
}
.data-display-table tbody tr:hover td { background-color: var(--bg-hover); color: var(--text-primary); }
.data-display-table tbody tr:hover td a {
    color: var(--accent-hover);
}

/* --- FIX: Override monospace font for links inside specific table cells --- */
.data-display-table td[data-label="Hash"] a,
.data-display-table td[data-label="Transaction ID"] a {
    font-family: var(--font-family); /* Use standard font */
    font-size: 0.94em; /* Match default cell font size */
    line-height: 1.6;
}


/* --- Buttons & Interactive Elements (FIXED HOVER EFFECT) --- */
button {
    background-color: var(--accent-primary);
    color: var(--text-on-accent);
    border: none;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 4px rgba(139, 92, 246, 0.2);
}
button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px); /* This moves the button up, not out */
    box-shadow: 0 4px 8px rgba(139, 92, 246, 0.3);
}
button:active {
    transform: translateY(0px); /* Return to original position on click */
    box-shadow: 0 1px 2px rgba(139, 92, 246, 0.2);
}
button:disabled {
    background-color: var(--accent-disabled);
    color: #909090;
    cursor: not-allowed;
    transform: translateY(0px);
    box-shadow: none;
}

.pagination { text-align: right; margin-top: 30px; }
.pagination span { margin: 0 15px; font-size: 1em; color: var(--text-secondary); vertical-align: middle; }

a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* General address link styling */
.address-link .address-value { color: var(--accent-link-bright); text-decoration: none; }
.address-link:hover .address-value { color: var(--accent-hover); text-decoration: underline; }


/* --- Modals --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7); display: flex; justify-content: center; align-items: center;
    z-index: 1000; padding: 20px; opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.modal-overlay.modal-open { opacity: 1; visibility: visible; transition: opacity 0.3s ease; }
.modal-content {
    background-color: var(--bg-secondary); color: var(--text-primary); padding: 0;
    border-radius: var(--border-radius); box-shadow: var(--box-shadow-strong);
    width: 100%; max-width: 750px; max-height: 90vh;
    display: flex; flex-direction: column; transform: scale(0.95); transition: transform 0.3s ease;
}
.modal-overlay.modal-open .modal-content { transform: scale(1); }
.modal-header { padding: 15px 25px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { margin: 0; font-size: 1.6em; font-weight: 600; color: var(--text-primary); }
.modal-close-button { font-size: 2em; font-weight: bold; color: var(--text-secondary); cursor: pointer; line-height: 1; padding: 0 5px; }
.modal-close-button:hover { color: var(--text-primary); }
.modal-body {
    padding: 25px; overflow-y: auto; font-size: 0.95em;
    scrollbar-width: thin; scrollbar-color: var(--accent-primary) var(--bg-tertiary);
}
.modal-body::-webkit-scrollbar { width: 8px; }
.modal-body::-webkit-scrollbar-track { background: var(--bg-tertiary); border-radius: var(--border-radius); }
.modal-body::-webkit-scrollbar-thumb { background-color: var(--accent-primary); border-radius: var(--border-radius); border: 2px solid var(--bg-tertiary); }
.modal-body::-webkit-scrollbar-thumb:hover { background-color: var(--accent-hover); }

/* Styles for tables within the modal body */
.modal-body table { width: 100%; border-collapse: collapse; margin-bottom: 20px; background-color: var(--bg-secondary); }
.modal-body th, .modal-body td { border: 1px solid var(--border-color); padding: 10px 12px; text-align: left; word-break: break-all; }
.modal-body th { background-color: var(--bg-tertiary); font-weight: 600; width: 180px; }
.modal-body span.address-value {
    word-break: break-all;
    display: inline-block;
    font-size: 0.95em;
}

/* Styles for links inside the modal for better visibility */
.modal-body a {
    color: var(--accent-link-bright); /* Use the new bright link color */
    text-decoration: none;
    font-weight: 500;
}
.modal-body a:hover {
    color: var(--accent-primary); /* Use the standard accent for hover */
    text-decoration: underline;
}

/* Styles for lists within modal */
.modal-body ul { padding-left: 0; list-style: none; }
.modal-body ul li { /* Default style for li in modal, overridden by specific lists like tx-history */
    background-color: var(--bg-tertiary); padding: 12px 15px; margin-bottom: 10px; 
    border-radius: 6px; border: 1px solid var(--border-color); 
    font-size: 0.92em; line-height: 1.5; box-shadow: var(--box-shadow-soft); word-wrap: break-word; 
}
.modal-body ul li strong { color: var(--text-primary); font-weight: 600; }
.modal-body h4 { margin-top: 20px; margin-bottom: 10px; border-bottom: 1px solid var(--border-color); padding-bottom: 8px; font-size: 1.2em; font-weight: 500; color: var(--text-primary); }


/* Balances List in Modal */
.balances-list-modal { padding-left: 0; list-style: none; }
.balances-list-modal li {
    background-color: var(--bg-tertiary); padding: 10px 15px; margin-bottom: 8px;
    border-radius: 6px; border: 1px solid var(--border-color);
    font-size: 0.95em; display: flex; justify-content: space-between;
}
.balances-list-modal li strong { color: var(--text-primary); margin-right: 10px; }


/* Transaction History List in Modal - IMPROVED LAYOUT */
.transaction-history-list-modal {
    padding-left: 0; list-style: none; margin-top: 15px;
}
.tx-history-entry { /* Replaces .modal-body ul li for transaction history items */
    background-color: var(--bg-primary); /* Darker card background */
    padding: 15px; margin-bottom: 15px;
    border-radius: var(--border-radius); border: 1px solid var(--border-color);
    box-shadow: var(--box-shadow-soft);
    transition: box-shadow 0.2s ease-in-out;
}
.tx-history-entry:hover { box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

.tx-history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--border-color); }
.tx-history-type { font-weight: 600; font-size: 1.05em; color: var(--text-primary); padding: 4px 8px; border-radius: 4px; background-color: var(--bg-tertiary); }
.tx-history-type.type-transfer { background-color: #3b82f6; color: white; }
.tx-history-type.type-mining-reward { background-color: #f59e0b; color: var(--bg-primary); }
.tx-history-type.type-token-creation { background-color: #10b981; color: white; }
.tx-history-main-amount { font-size: 1.1em; font-weight: 600; }
.tx-history-main-amount.amount-positive { color: #4ade80; }
.tx-history-main-amount.amount-negative { color: #f87171; }
.tx-history-date { font-size: 0.85em; color: var(--text-secondary); }

.tx-history-details { margin-bottom: 12px; font-size: 0.9em; }
.tx-detail-row { display: flex; margin-bottom: 6px; line-height: 1.5; align-items: baseline; }
.tx-detail-row:last-child { margin-bottom: 0; }
.tx-detail-label { font-weight: 500; color: var(--text-secondary); margin-right: 8px; min-width: 60px; flex-shrink: 0; }
.tx-detail-value { color: var(--text-primary); word-break: break-all; flex-grow: 1; text-align: left; }
.tx-detail-value a {
    color: var(--accent-link-bright); /* Use new bright color here too */
    font-weight: 500;
}
.tx-detail-value a:hover {
    color: var(--accent-primary);
}

.tx-history-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.85em; color: var(--text-secondary); padding-top: 10px; border-top: 1px solid var(--border-color); margin-top: 10px; }
.tx-history-status { font-weight: 500; padding: 3px 7px; border-radius: 4px; text-transform: capitalize; }
.tx-history-status.status-completed { background-color: rgba(74, 222, 128, 0.2); color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.4); }
.tx-history-status.status-pending { background-color: rgba(250, 204, 21, 0.2); color: #facc15; border: 1px solid rgba(250, 204, 21, 0.4); }
.tx-history-status.status-failed, .tx-history-status.status-error { background-color: rgba(248, 113, 113, 0.2); color: #f87171; border: 1px solid rgba(248, 113, 113, 0.4); }
.tx-history-block a { color: var(--text-secondary); font-family: 'Courier New', Courier, monospace; }
.tx-history-block a:hover { color: var(--accent-hover); }


/* --- Network Overview & Charts --- */
#network-overview { margin-bottom: 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-item { background-color: var(--bg-tertiary); padding: 20px; border-radius: var(--border-radius); text-align: center; box-shadow: var(--box-shadow-soft); border: 1px solid var(--border-color); }
.stat-item h4 { margin-top: 0; margin-bottom: 10px; font-size: 0.95em; color: var(--text-secondary); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-item p { margin: 0; font-size: 1.5em; font-weight: 600; color: var(--text-primary); }
.stat-item p .supply-percentage { font-size: 0.7em; color: var(--text-secondary); margin-left: 5px; font-weight: 400; }

.charts-grid { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 992px) { .charts-grid { grid-template-columns: repeat(2, 1fr); } }
.chart-container { background-color: var(--bg-secondary); padding: 20px 20px 75px 20px; border-radius: var(--border-radius); box-shadow: var(--box-shadow-soft); border: 1px solid var(--border-color); height: 420px; display: flex; flex-direction: column; }
.chart-container .chart-header-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; }
.chart-container .chart-header-controls h4 { margin-top: 0; margin-bottom: 5px; font-size: 1.1em; color: var(--text-primary); font-weight: 500; text-align: left; }
.time-filter-controls { display: flex; gap: 5px; flex-wrap: wrap; justify-content: flex-end; }
.time-filter-btn { background-color: var(--bg-tertiary); color: var(--text-secondary); border: 1px solid var(--border-color); padding: 6px 10px; font-size: 0.8em; font-weight: 500; border-radius: 5px; cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; box-shadow: none; }
.time-filter-btn:hover { background-color: var(--bg-hover); color: var(--text-primary); border-color: var(--accent-primary); transform: none; box-shadow: none; }
.time-filter-btn.active { background-color: var(--accent-primary); color: var(--text-on-accent); border-color: var(--accent-primary); font-weight: 600; }
#hashrate-chart-container { position: relative; } /* For spinner positioning */
.chart-container canvas { width: 100% !important; height: 100% !important; }
.chart-no-data-message { text-align: center; padding: 40px 20px; color: var(--text-secondary); font-style: italic; font-size: 0.95em; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; }


/* --- Utilities --- */
.spinner {
    border: 6px solid var(--bg-tertiary);
    border-top: 6px solid var(--accent-primary);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 0.8s linear infinite;
    margin: 40px auto; /* Default margin, can be overridden for specific spinners */
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.error-message { 
    color: #f87171; background-color: rgba(248, 113, 113, 0.1); 
    border: 1px solid rgba(248, 113, 113, .3); padding: 15px; 
    border-radius: var(--border-radius); text-align: center; 
    margin: 20px auto; max-width: 600px; 
}

pre { /* Styles for <pre> tag, typically in modals for raw data */
    margin: 10px 0; padding: 12px 15px; font-size: 0.9em;
    max-height: 250px; overflow-y: auto; background-color: var(--bg-primary);
    border-radius: var(--border-radius); white-space: pre-wrap; word-break: break-all;
    border: 1px solid var(--border-color);
    scrollbar-width: thin; scrollbar-color: var(--accent-primary) var(--bg-tertiary);
}
pre::-webkit-scrollbar { width: 8px; height: 8px; }
pre::-webkit-scrollbar-track { background: var(--bg-tertiary); border-radius: var(--border-radius); }
pre::-webkit-scrollbar-thumb { background-color: var(--accent-primary); border-radius: var(--border-radius); border: 2px solid var(--bg-tertiary); }
pre::-webkit-scrollbar-thumb:hover { background-color: var(--accent-hover); }


/* --- Responsive design adjustments --- */
@media (max-width: 991px) { /* Tablet and larger mobile */
    .header-controls { flex-direction: column; }
    .search-container { order: -1; margin-bottom: 15px; }
    nav { width: 100%; }
    nav ul { justify-content: center; }
}

@media (max-width: 768px) { /* Smaller tablets and mobile */
    body { font-size: 15px; }
    .container { padding: 20px 15px; }
    header { padding: 25px 15px; margin-bottom: 30px; }
    header h1 { font-size: 2em; }
    section { padding: 20px 15px; }
    .section-header h2 { font-size: 1.5em; }
    .section-header { margin-bottom: 20px; padding-bottom: 12px; }

    .modal-content { max-width: 95%; max-height: 85vh; }
    .modal-header h3 { font-size: 1.4em; }
    .modal-body { padding: 15px; font-size: 0.9em; }
    .modal-body th { width: 120px; } /* For tables directly in modal body */

    /* Responsive Table (Stacking) */
    .data-display-table, .data-display-table thead, .data-display-table tbody,
    .data-display-table th, .data-display-table td, .data-display-table tr { display: block; }
    .data-display-table { table-layout: auto; }
    .data-display-table thead tr { position: absolute; top: -9999px; left: -9999px; }
    .data-display-table tr { border: 1px solid var(--border-color); border-radius: var(--border-radius); margin-bottom: 15px; background-color: var(--bg-secondary); }
    .data-display-table tr:hover { background-color: var(--bg-hover); }
    .data-display-table td {
        border: none; border-bottom: 1px dotted var(--border-color); position: relative;
        padding-left: 50%; text-align: right; white-space: normal;
        font-size: 0.95em; background-color: transparent;
    }
    .data-display-table td:last-child { border-bottom: none; }
    .data-display-table td:before {
        content: attr(data-label); position: absolute; left: 10px;
        width: calc(50% - 20px); padding-right: 10px; white-space: nowrap;
        text-align: left; font-weight: bold; color: var(--text-primary);
    }
    /* Ensure long hashes/IDs in responsive table don't break layout */
    .data-display-table td[data-label="Hash"] a, 
    .data-display-table td[data-label="Transaction ID"] a,
    .data-display-table td[data-label="Creation TxID"] a, /* For registered tokens table */
    .data-display-table td[data-label="Transactions"] a { 
        display: inline-block; max-width: 100%; 
        overflow: hidden; text-overflow: ellipsis; white-space: nowrap; 
    }
    .data-display-table td[data-label="Hash"], 
    .data-display-table td[data-label="Transaction ID"],
    .data-display-table td[data-label="Creation TxID"] { 
        font-family: var(--font-family); /* Revert from monospace for better responsive reading */
        font-size: 0.95em; word-break: break-all; 
    }
    /* Center specific columns in responsive table view if needed, like Supply/Total */
    .data-display-table td[data-label="Supply / Total"] { text-align: right; /* Default right for numbers */ }


    nav ul { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    button { padding: 10px 20px; font-size: 0.95em; }
    .pagination { text-align: center; }
    .pagination button { margin: 8px 5px; padding: 10px 18px; }
    .pagination span { display: block; margin: 12px 0; }

    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .stat-item p { font-size: 1.3em; }
    .charts-grid { grid-template-columns: 1fr; } /* Charts stack */
    .chart-container { height: 370px; padding-bottom: 30px; }
    .chart-container .chart-header-controls { flex-direction: column; align-items: flex-start; }
    .chart-container .chart-header-controls h4 { margin-bottom: 10px; }
    .time-filter-controls { justify-content: flex-start; width: 100%; }
}

@media (max-width: 520px) { /* Specific small screen adjustments for Tx History in Modal */
    .tx-history-header { flex-direction: column; align-items: flex-start; gap: 5px; }
    .tx-history-main-amount, .tx-history-date { align-self: flex-start; }
    .tx-history-footer { flex-direction: column; align-items: flex-start; gap: 5px; }
    /* .tx-detail-row { flex-direction: column; align-items: flex-start; } */ /* Optional: Stack label/value in details */
    /* .tx-detail-label { min-width: auto; margin-bottom: 2px; } */
}

@media (max-width: 480px) { /* Smallest mobile screens */
    .container { padding: 15px 10px; }
    header h1 { font-size: 1.8em; }
    .section-header h2 { font-size: 1.4em; }
    .data-display-table td { font-size: 0.9em; padding-left: 45%; } /* Further adjust responsive table padding */
    .data-display-table td:before { width: calc(45% - 15px); }
    .data-display-table td[data-label="Hash"], 
    .data-display-table td[data-label="Transaction ID"],
    .data-display-table td[data-label="Creation TxID"] { font-size: 0.9em; }
    
    pre { font-size: 0.85em; padding: 10px 12px; max-height: 150px; }
    button { padding: 9px 16px; font-size: 0.9em; }
    .pagination button { font-size: 0.9em; padding: 9px 15px; }
    .pagination span { font-size: 0.95em; }
    .modal-header h3 { font-size: 1.2em; }
    .modal-body { padding: 10px; }
    .modal-body th { width: 100px; } /* Modal table header width */

    .stats-grid { grid-template-columns: 1fr; } /* Stack stat items */
    .stat-item p { font-size: 1.2em; }
    .chart-container { height: 340px; padding-bottom: 25px; }
    .search-container { flex-direction: column; }
    .search-container button { width: 100%; }
    nav ul { flex-direction: column; gap: 8px; }
}