/* Generated by scripts/build_css.py; edit main.css or layers/, then rebuild. */

/* layers/00-settings.css */
:root {
    /* Light mode (default) */
    --color-background: #f5f7fb;
    --color-surface: #ffffff;
    --color-surface-soft: #f2f4f8;
    --color-surface-alt: #ecf1f8;
    --color-border: #d9e1ec;
    --color-border-muted: rgba(47, 76, 123, 0.16);
    --color-text: #0f1d33;
    --color-text-muted: #6b7a91;
    --color-accent: #3a7bd5;
    --color-accent-strong: #2f6cc4;
    --color-positive: #1b9a5c;
    --color-negative: #d64545;

    --space-xxs: 2px;
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;

    --radius-sm: 3px;
    --radius-md: 6px;
    --radius-lg: 12px;
    --radius-pill: 14px;

    --shadow-card: 0 10px 30px rgba(30, 52, 93, 0.08);
    --shadow-card-hover: 0 20px 50px rgba(30, 52, 93, 0.16);
    --gradient-card: linear-gradient(180deg, #ffffff, #f6f9ff);

    --sidebar-sticky-offset: 120px;
    --max-page-width: 1400px;
    
    /* Animation variables */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --color-background: #0d1117;
        --color-surface: #161b22;
        --color-surface-soft: #1c2128;
        --color-surface-alt: #21262d;
        --color-border: #30363d;
        --color-border-muted: rgba(139, 148, 158, 0.2);
        --color-text: #e6edf3;
        --color-text-muted: #8b949e;
        --color-accent: #58a6ff;
        --color-accent-strong: #79c0ff;
        --color-positive: #3fb950;
        --color-negative: #f85149;
        
        --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.3);
        --shadow-card-hover: 0 20px 50px rgba(0, 0, 0, 0.4);
        --gradient-card: linear-gradient(180deg, #161b22, #0d1117);
    }
}

/* layers/02-generic.css */
*,
*::before,
*::after {
    box-sizing: border-box;
    outline-offset: 2px;
}

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.45;
    font-weight: 400;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
    background: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--color-accent);
}

/* layers/03-elements.css */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 20px rgba(30, 52, 93, 0.08);
}

footer {
    background-color: var(--color-surface);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-xxl);
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    padding: var(--space-sm);
    text-align: left;
}

/* layers/04-objects.css */
.global-wrapper {
    min-height: 100vh;
    background: var(--color-background);
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    width: 100%;
    max-width: var(--max-page-width);
    margin: 0 auto;
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: var(--space-xxl);
    padding: var(--space-xxl) var(--space-xl);
}

.main-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.sidebar {
    position: sticky;
    align-self: flex-start;
    top: var(--sidebar-sticky-offset);
}

.cards-container,
.cards-container-chart {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: 0;
}

.cards-container-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

#chart-container {
    display: flex;
    position: relative;
    height: 400px;
    text-align: left;
    flex: 1;
    padding: 0;
}

#chart-legend {
    position: absolute;
    top: var(--space-sm);
    left: var(--space-lg);
    background-color: var(--color-surface-soft);
    border: 1px solid var(--color-border);
    width: auto;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.75rem;
}

.top-chart-container {
    border: 1px solid var(--color-border-muted);
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--radius-lg);
    background-color: var(--color-surface);
    font-size: 0.85rem;
    box-shadow: var(--shadow-card);
}

.data-table {
    margin: 0;
    padding: 0;
    text-align: left;
}

@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: relative;
        top: auto;
    }
}

/* layers/05-components.css */
/* Navigation ------------------------------------------------------------- */

.site-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 100;
    background: var(--color-surface);
}

.nav-shell {
    max-width: var(--max-page-width);
    margin: 0 auto;
    padding: var(--space-md) var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: var(--color-surface);
}

.brand-mark {
    display: flex;
    flex-direction: column;
}

.brand-mark a {
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    color: var(--color-text);
    text-transform: uppercase;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.28em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-left: auto;
}

.nav-link {
    color: var(--color-text-muted);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--color-text);
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + var(--space-xs));
    right: 0;
    min-width: 200px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    z-index: 200;
    padding: var(--space-xs) 0;
    flex-direction: column;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: flex;
}

.nav-dropdown-item {
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
    text-decoration: none;
}

.nav-dropdown-item:hover {
    background: var(--color-surface-soft, rgba(0,0,0,0.04));
    color: var(--color-text);
}

.symbol-search {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0 var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    background-color: var(--color-surface-soft);
    min-width: 280px;
}

.symbol-search input {
    border: none;
    padding: var(--space-xs) var(--space-sm);
    width: 100%;
    color: var(--color-text);
}

.symbol-search button {
    border: none;
    background: var(--color-accent);
    color: #ffffff;
    font-weight: 600;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-pill);
    cursor: pointer;
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--color-border);
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    color: var(--color-text);
    cursor: pointer;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-toggle svg {
    width: 22px;
    height: 22px;
}

@media (max-width: 960px) {
    .nav-shell {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .brand-mark {
        order: 0;
    }

    .nav-toggle {
        order: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: auto;
    }

    .symbol-search {
        order: 2;
        width: 100%;
        min-width: 0;
    }

    .nav-links {
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        margin-left: 0;
        display: none;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        padding: var(--space-sm) var(--space-md);
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown-menu {
        display: flex;
        position: static;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--color-border);
        margin-left: var(--space-md);
        padding: 0;
        border-radius: 0;
        min-width: 0;
    }

    .nav-dropdown-item {
        padding: var(--space-sm) var(--space-md);
    }
}

/* Card / panel primitives ----------------------------------------------- */

.surface-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
    position: relative;
}

.quote-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.quote-hero {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xl);
    align-items: center;
}

.quote-identity {
    flex: 2;
    min-width: 260px;
}

.quote-identity h1 {
    margin: 0;
    font-size: 2.75rem;
}

.quote-identity h2 {
    margin: var(--space-xs) 0;
    font-size: 1.05rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.quote-meta {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.quote-pricing {
    flex: 1;
    min-width: 220px;
    text-align: right;
}

.quote-price {
    font-size: 2.5rem;
    font-weight: 500;
}

.quote-change {
    font-size: 1rem;
    margin-top: var(--space-xs);
}

.positive {
    color: var(--color-positive);
}

.negative {
    color: var(--color-negative);
}

.frequency-buttons {
    display: inline-flex;
    gap: var(--space-xxs);
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.frequency-buttons button {
    border: none;
    padding: var(--space-xxs) var(--space-sm);
    font-size: 0.75rem;
    font-weight: 500;
    background: transparent;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background 0.15s ease, color 0.15s ease;
}

.frequency-buttons button:hover {
    color: var(--color-text);
}

.frequency-buttons button.selected {
    background: color-mix(in srgb, var(--color-accent) 10%, transparent);
    color: var(--color-accent);
}

.frequency-buttons button.selected:hover {
    color: var(--color-accent-strong);
}

.chart-shell {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-lg);
}

.metric-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
}

.metric-panel h4 {
    margin-top: 0;
    margin-bottom: var(--space-md);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.metric-panel dl {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    row-gap: var(--space-xs);
    column-gap: var(--space-sm);
    font-size: 0.9rem;
}

.metric-panel dt {
    color: var(--color-text-muted);
}

.metric-panel dd {
    margin: 0;
    font-weight: 500;
    color: var(--color-text);
}

.description-card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: var(--space-xl);
}

.description-card p {
    margin-bottom: 0;
    color: var(--color-text-muted);
}

/* Sidebar cards ---------------------------------------------------------- */

.sidebar-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.sidebar-card h4 {
    margin: 0 0 var(--space-sm);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.sidebar-card button,
.sidebar-card input,
.sidebar-card select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    padding: var(--space-sm);
    background-color: rgba(255, 255, 255, 0.02);
}

.sidebar-card button {
    background-color: var(--color-accent-strong);
    color: #031422;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.sidebar-card a {
    color: var(--color-accent);
}

/* List page -------------------------------------------------------------- */

.list-page {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.filter-panel {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-lg);
    box-shadow: var(--shadow-card);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-md);
}

.filter-control {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.filter-control select {
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--color-text);
}

.screener-summary {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-sm);
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: var(--space-md);
}

.table-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
}

.data-table thead {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.data-table th {
    background: var(--color-surface-soft);
    border-bottom: 1px solid var(--color-border);
    cursor: pointer;
}

.data-table td {
    border-bottom: 1px solid var(--color-border-muted);
    font-size: 0.9rem;
}

.data-table tr:hover {
    background-color: rgba(58, 123, 213, 0.08);
}

.marketcap-cell {
    font-variant-numeric: tabular-nums;
}

.mobile-card {
    display: none;
}

@media (max-width: 860px) {
    .table-card {
        display: none;
    }

.mobile-card {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: 0;
    border: none;
    background: #fff;
    cursor: pointer;
    width: 100%;
    position: relative;
}

.mobile-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--space-lg);
    right: var(--space-lg);
    height: 1px;
    background-color: var(--color-border);
}

.mobile-card:last-child::after {
    display: none;
}
}

.pagination {
    display: flex;
    gap: var(--space-xs);
    list-style: none;
    padding: 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    color: var(--color-text);
}

.pagination .active a {
    background-color: var(--color-accent);
    color: #031422;
    border-color: transparent;
}

/* Calculator modules ----------------------------------------------------- */

.calculator-page {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.calculator-card {
    background: var(--color-surface-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    padding: var(--space-xl);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.calculator-card label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
}

.calculator-card input {
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    padding: var(--space-sm);
    background-color: rgba(255, 255, 255, 0.02);
}

.calculator-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.btn-primary {
    border: none;
    background: linear-gradient(135deg, var(--color-accent-strong), #94f0ff);
    color: #031422;
    font-weight: 600;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.btn-secondary {
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.table-compact {
    width: 100%;
    border-collapse: collapse;
}

.table-compact th,
.table-compact td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-xs) 0;
    font-size: 0.85rem;
}

.table-compact tbody tr {
    transition: background-color 0.15s ease;
}

.table-compact tbody tr:hover {
    background-color: color-mix(in srgb, var(--color-accent) 12%, transparent);
}

/* Footer ---------------------------------------------------------------- */

.site-footer {
    padding: var(--space-xxl) var(--space-xl);
}

.footer-grid {
    max-width: var(--max-page-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-xl);
}

.footer-column h4 {
    margin-top: 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
}

.footer-column p,
.footer-column a,
.footer-column li {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom {
    margin-top: var(--space-xl);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-disclaimer {
    max-width: var(--max-page-width);
    margin: var(--space-lg) auto 0;
    padding-top: var(--space-lg);
    border-top: 1px solid color-mix(in srgb, var(--color-text-muted) 20%, transparent);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
    text-align: center;
}

.footer-disclaimer a {
    color: var(--color-text-muted);
    text-decoration: underline;
}

/* Legacy hooks kept for compatibility ----------------------------------- */

#tv-attr-logo {
    display: none;
}


        /* 
        #myTable td:hover {
            background-color: #9f9f9f;
        } */
        
        /* .sidebar::after {
                content: "";
                display: block;
                height: 750px;
            } */


            .clickable-card-sidebar p, .clickable-card-sidebarlast-child p {
                font-size: 14px;
                word-wrap: break-word; /* Ensures long words break to prevent overflow */
                overflow: hidden;      /* Hide any overflowing content */
                text-overflow: ellipsis; /* Add ellipsis for overflowing text */
                display: -webkit-box;
                -webkit-line-clamp: 5; /* Limit to 5 lines */
                line-clamp: 5;
                -webkit-box-orient: vertical;
                max-height: 100px;     /* Adjust as needed based on line-clamp */
            }

        /* .clickable-card:hover {
            box-shadow: 0 12px 24px rgba(0,0,0,0.3);
        }
        .clickable-card-quote:hover {
            box-shadow: 0 6px 12px rgba(0,0,0,0.3);
        } */



        #tvchart {
            display:block; 
            flex: 1;
            /* width: 700px; */
            min-width: 95%;
            max-width: 100%;
            padding:5px;
        }
        #histogramChart {
            display:block; 
            flex: 1;
            /* width: 700px; */
            min-width: 90%;
            max-width: 95%;
            padding:5px;
        }


        #data-table td {
            width: 10%; /* as there are 10 columns */
            text-align: center; /* optional, for better readability */
        }





        .price-info {
            display: flex;
            align-items: center; /* Vertically center align the items */
            gap: 10px; /* Adjust the gap between the items as needed */
        }
        

        .price-label {
            font-size: 12px; /* Smaller font size for the labels */
            color: #666; /* Grey color for the text */
            margin-right: 4px; /* Space after label */
        }
        .price-value {
            font-weight: bold; /* Bold for the price value */
        }
        .price-change {
            font-size: 14px; /* Slightly smaller font size for the change values */
            padding: 2px 8px; /* Padding around the change values */
            border-radius: var(--radius-sm); /* Rounded corners for the change values background */
        }
        .price-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 20px; /* Adjust the font size as needed */
            margin-top: 8px; /* Adjust the spacing from the infocontainer as needed */
        }


        .stock-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            background: #f5f5f5; /* Adjust the background as needed */
            padding: 10px 20px; /* Adjust the padding as needed */
            border-bottom: 1px solid #d0d0d0;
        }
        
        .stock-info {
            flex-grow: 1;
        }
        
        .stock-ticker {
            font-size: 24px; /* Adjust the font size as needed */
            font-weight: bold;
        }
        
        .stock-name {
            font-size: 18px; /* Adjust the font size as needed */
        }
        
        .stock-category {
            font-size: 14px; /* Adjust the font size as needed */
            color: #666; /* Adjust the color as needed */
        }
        
        .stock-actions {
            margin-left: auto; /* This will push the actions to the right */
            display: flex;
            gap: 10px; /* Adjust the gap between action links as needed */
        }
        
        .stock-actions a {
            text-decoration: none;
            color: #007BFF; /* Adjust the link color as needed */
            font-size: 14px; /* Adjust the font size as needed */
        }
        
        .stock-pricing {
            text-align: right;
        }
        
        .stock-date {
            font-size: 12px; /* Adjust the font size as needed */
            color: #666; /* Adjust the color as needed */
        }
        
        .stock-price {
            font-size: 32px; /* Adjust the font size as needed */
            font-weight: bold;
        }
        
        .stock-change {
            display: inline-block;
            padding: 2px 8px; /* Adjust the padding as needed */
            border-radius: var(--radius-md); /* Adjust the border radius as needed */
            font-size: 14px; /* Adjust the font size as needed */
        }
---------------------------------------------------- TESTING


        .stock-widget{
        width: 100%;
        flex-grow: 1;
        align-items: left;
        background: #fff;
        margin: 5px auto;
        padding: 5px;
        }
        
        .stock-field {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding:2px;
        border-bottom: 1px solid #c8c8c8;
        }
        .stock-field:last-child {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding:2px;
        }
        
        .field-name {
        align-items: left;
        font-size: 14px;
        color: #333;
        font-weight: bold;
        }
        
        .field-value {
        align-items: right;
        font-size: 14px;
        color: #333;
        }

        
        .stock-list {
        width: 100%; /* Each list takes up half the width of the stock-content */
        }


        .stock-content {
        width: 100%;
        justify-content: space-around;
        padding: 10px;
        }






        /* ----------MOBILE-------------- */
        @media (max-width: 768px) {

            body, html{
                background-color:rgba(245, 245, 245, 0.923);
                width:100%;
                overflow-x: hidden;
            }


            .sidebar,.cards-container-sidebar,.content-wrapper, .cards-container:first-child{
                padding-right: 1%;
                padding-left: 1%;
                padding-top: 1%;
                padding-bottom: 1%;
                margin-left: -3px;
                margin-right: -4px;
                height: 50%;
                overflow: hidden;
            }


            /* */
            
            #tvchart {
                display:block; 
                flex:auto;
                min-width: 100%;
                max-width: 100%;
            }

            #data-table td {
                width: 10%; /* as there are 10 columns */
                text-align: center; /* optional, for better readability */
                font-size: 8px;
            }

            /* */

            
            .stock-list {
                width: 100%; /* Each list takes up the full width of the stock-content on mobile */
            }
            
            .stock-field {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top:5px;
            padding-bottom:5px;
            padding-left:2px;
            padding-right:2px;
            border-bottom: 1px solid #c8c8c8;
            }

            .stock-field:last-child {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding:2px;
            }

            /* .stock-content {
            display: flex;
            justify-content: space-around;
            padding: 10px;
            flex-direction: column;
            align-items: center;
            } */


            .stock-content {
            width: 100%;
            justify-content: space-around;
            padding: 10px;
            }


            .stock-widget {
            width: 100%;
            align-items: left;
            background: #fff;
            /* margin: 5px auto; */
            /* padding: 5px; */
            }
            /* .stock-widget:last-child {
            width: 100%;
            align-items: right;
            background: #fff;
            margin: 5px auto;
            padding: 5px;
            } */


            .field-name {
                align-items: left;
                font-size: 14px;
                color: #333;
                font-weight: bold;
            }
                
            .field-value {
            align-items: right;
            font-size: 14px;
            color: #333;
            }





            .clickable-card:hover {
                box-shadow:none;
            }
            .clickable-card-quote:hover {
                box-shadow:none;
            }

            .hideonmobile {
                display: none;
            }


        }
        /* } END OF MOBILE */

/* layers/06-utilities.css */
.positive {
    color: var(--color-positive);
}

.negative {
    color: var(--color-negative);
}

.u-text-center {
    text-align: center;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* Loading skeleton animation for better perceived performance */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--color-surface-soft) 25%,
        var(--color-surface-alt) 50%,
        var(--color-surface-soft) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Pulse animation for live data indicators */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Fade in animation for content loads */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus visible styles for accessibility */
:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
