﻿body {
    font-family: Arial, sans-serif;
    transition: background 0.3s, color 0.3s;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

h1 {
    color: #000;
    margin: 0px;
    justify-content: center;
    align-content: center;
    text-align: center;
}

body.dark-mode h1 {
    color: white;
}

.header {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    background: #f3f3f3;
    border-bottom: 1px solid;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Mobile view adjustments */
@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}


.table-container-data {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    margin: auto;
    gap: 10px;
    padding-right: 10px;
    padding-left: 10px;
    background: transparent;
}

    .table-container-data > div {
        flex: 1 1 48%; /* two tables side-by-side, wrap on smaller screens */
        display: flex;
        flex-wrap: wrap;
    }

.table-container-data {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: flex-start;
    margin: auto;
    gap: 10px;
    padding-right: 10px;
    padding-left: 10px;
    background: transparent;
}

    .table-container-data > div {
        flex: 1 1 48%; /* two tables side-by-side, wrap on smaller screens */
        display: flex;
        flex-wrap: wrap;
    }

.table-container-dataM {
    display: flex;
    justify-content: center; /* center content horizontally */
    align-items: flex-start; /* align to top */
    margin: auto;
    padding: 10px;
    background: transparent;
}

    .table-container-dataM > div {
        flex: 0 1 auto; /* shrink/grow naturally */
        display: flex;
        justify-content: center;
    }

.market-table {
    flex: 1 1 48%;
    width: 100%;
    margin-top: 10px;
    font-size: 1rem;
    border-style: ridge;
    border-radius: 6px;
    border: 1px solid;
    box-shadow: 0 2px 4px 0px rgba(0, 0, 0, 0.1);
}

    .market-table th {
        border-bottom: groove;
        //border: 1px solid #ddd;
        background-color: #f3f3f3;
        text-align: center;
        padding-left: 5px;
        padding-right: 5px;
    }

    .market-table td {
        border-bottom: groove;
        //border: 1px solid #ddd;
        background-color: #ffffff;
        text-align: center;
        padding-left: 3px;
        padding-right: 3px;
    }

    .market-table tr:last-child td {
        border-bottom: none;
    }

.dark-mode .market-table {
    width: 100%;
    margin-top: 10px;
    font-size: 1rem;
    border-style: ridge;
    border-radius: 6px;
    border: 1px solid;
    border-radius: 6px;
    box-shadow: 0 2px 4px 0px rgba(0, 0, 0, 0.1);
}

    .dark-mode .market-table th {
        border-bottom: groove;
        //border: 1px solid #ddd;
        text-align: center;
        background-color: #1c1c1c;
        padding-left: 5px;
        padding-right: 5px;
    }

    .dark-mode .market-table td {
        border-bottom: groove;
        //border: 1px solid #ddd;
        background-color: black;
        text-align: center;
        padding-left: 5px;
        padding-right: 5px;
    }

    .dark-mode .market-table tr:last-child td {
        border-bottom: none;
    }

/* Responsive scaling for tablets */
@media screen and (max-width: 1024px) {
    .table-container-data {
        padding: 0px;
        gap: 0px;
    }

        .table-container-data > div,
        .market-table,
        .dark-mode .market-table {
            flex: 1 1 100%;
            padding-left: 0px;
        }

    .market-table,
    .dark-mode .market-table {
        font-size: 0.9rem;
    }
}

/* Large mobiles */
@media screen and (max-width: 768px) {
    .market-table,
    .dark-mode .market-table {
        font-size: 0.8rem;
    }
}

/* Small mobiles */
@media screen and (max-width: 480px) {
    .market-table,
    .dark-mode .market-table {
        font-size: 0.7rem;
    }
}
/* Logo Styling */
.logo {
    max-width: 215.95px;
    width: 100%;
    height: auto;
    transition: filter 0.3s;
}

@media screen and (max-width: 480px) {
    .logo {
        max-width: 180px;
    }
}

/* Dark Mode Adjustments */

.dark-mode .logo-container {
    background-color: #333; /* Light background for contrast */
}

.dark-mode .header {
    background: black;
    border-bottom: 1px solid;
}

.title {
    font-size: 20px;
}

.theme-toggle img {
    cursor: pointer;
    transition: opacity 0.3s;
}

    .theme-toggle img:hover {
        opacity: 0.8;
    }

.dark-mode {
    background: #121212;
    color: white;
}

canvas {
    display: block;
    width: 100% !important;
    height: 400px !important;
    background: white;
    border-radius: 5px;
}

.dark-mode canvas {
    background: black    !important;
}
/* Market Strip Styles */
.market-strip {
    display: flex;
    flex-wrap: wrap; /* Allows wrapping to the next line */
    gap: 10px; /* Adds spacing between items */
    padding: 10px;
    background: #f3f3f3;
    border-bottom: 2px solid #ddd;
}

.dark-mode .market-strip {
    background: #1c1c1c;
    border-bottom: 2px solid #444;
}

.stock-item {
    flex: 1 1 calc(14.28% - 10px); /* 7 items in the first row (100% / 7 ≈ 14.28%) */
    min-width: 120px; /* Ensures responsiveness */
    padding: 10px;
    background: white;
    border-radius: 6px;
    text-align: center;
    box-sizing: border-box; /* Ensures padding is included in the width */
}

    /* Target items after the 7th item */
    .stock-item:nth-child(n + 8) {
        flex: 1 1 calc(25% - 10px); /* 4 items in the second row (100% / 4 = 25%) */
    }

@media (max-width: 1200px) {
    .stock-item {
        flex: 1 1 calc(25% - 10px); /* 4 items per row on medium screens */
    }

        .stock-item:nth-child(n + 8) {
            flex: 1 1 calc(25% - 10px); /* Keep 4 items per row for the second row */
        }
}

@media (max-width: 800px) {
    .stock-item {
        flex: 1 1 calc(33.33% - 10px); /* 3 items per row on smaller screens */
    }

        .stock-item:nth-child(n + 8) {
            flex: 1 1 calc(33.33% - 10px); /* Keep 3 items per row for the second row */
        }
}

@media (max-width: 500px) {
    .stock-item {
        flex: 1 1 calc(50% - 10px); /* 2 items per row on mobile */
    }

        .stock-item:nth-child(n + 8) {
            flex: 1 1 calc(50% - 10px); /* Keep 2 items per row for the second row */
        }
}

.dark-mode .stock-item {
    background: #333;
    border: 1px;
}

.stock-name {
    font-size: medium; /* Reduced font size */
    font-weight: bold;
}

.stock-value {
    font-size: medium; /* Reduced font size */
    //font-weight: bold;
}

.change {
    font-size: small; /* Reduced font size */
}

.up {
    color: #5b9a5d;
}

.down {
    color: #e25f5b;
}

.dark-mode .up {
    color: #00E676;
}

.dark-mode .down {
    color: #FF4C4C;
}

.small {
    font-size: medium; /* Reduced font size */
    //font-weight: bold;
}

.prv-value {
    font-size: 14px; /* Reduced font size */
}
/* Dropdown Styles */
.dropdown-container {
    display: flex;
    flex-flow: wrap;
    justify-content: center;
    gap: 10px; /* Reduced gap */
    margin: 10px; /* Reduced margin */
}

.dropdown {
    position: relative;
    min-width: 140px; /* Reduced min-width */
}

    .dropdown select {
        width: 100%;
        padding: 8px 30px 8px 12px; /* Adjusted padding for the arrow */
        border-radius: 6px; /* Slightly rounded corners */
        border: 1px solid #ccc;
        background: white;
        color: #333;
        font-size: 12px;
        font-weight: bold;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        cursor: pointer;
        transition: all 0.3s ease; /* Smooth transition for hover effects */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
    }

        .dropdown select:hover {
            border-color: #888; /* Darker border on hover */
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
        }

        .dropdown select:focus {
            outline: none;
            border-color: #007BFF; /* Blue border on focus */
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* Focus ring */
        }

.dark-mode select {
    background: #333;
    color: white;
    border: 1px solid #555;
}

    .dark-mode select:hover {
        border-color: #777; /* Lighter border on hover in dark mode */
    }

    .dark-mode select:focus {
        border-color: #1E90FF; /* Brighter blue border on focus in dark mode */
        box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.25); /* Focus ring in dark mode */
    }

.dropdown::after {
    content: "▼";
    position: absolute;
    top: 50%;
    right: 12px; /* Adjusted position */
    transform: translateY(-50%);
    pointer-events: none;
    color: #666;
    font-size: 10px; /* Smaller arrow */
    transition: color 0.3s ease; /* Smooth transition for arrow color */
}

.dropdown:hover::after {
    color: #333; /* Darker arrow on hover */
}

.dark-mode .dropdown::after {
    color: #aaa;
}

.dark-mode .dropdown:hover::after {
    color: #ddd; /* Lighter arrow on hover in dark mode */
}
/* Table Styles */
.table-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin: 10px;
    padding: 0;
    background: transparent;
}


.chart-container {
    flex: 3;
    margin: 10px;
    padding: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    //overflow: hidden;
}

.dark-mode .chart-container {
    background: black;
}

.table {
    flex: 1;
    background: white;
    border-radius: 6px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    align-self: anchor-center;
}

.dark-mode .table {
    background: #1F1F1F;
}

/*.table table {
    width: 100%;
    border-collapse: collapse;
}*/
.table table {
    width: 100%;
    border-collapse: collapse;
    height: 100%;
    
}
.table th, .table td {
    padding: 6px; /* Reduced padding */
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.dark-mode .table th, .dark-mode .table td {
    border-bottom: 1px solid #444;
}

.table th {
    background: #f3f3f3;
    font-weight: bold;
}

.dark-mode .table th {
    background: #1c1c1c;
}

.dark-mode {
    --label-color: #aaa;
    --value-color: #ddd;
    --background-color: rgb(240, 240, 240);
    --border-color: #555;
    --box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

.atm-values {
    display: flex;
    flex-flow: wrap;
    justify-content: center;
    align-items: center;
    margin: auto;
    //padding: 5px; /* Replaced var(--padding) */
    background-color: #fff; /* Replaced var(--background-color) */
    border: 1px solid black; /* Replaced var(--border-color) */
    border-radius: 6px; /* Replaced var(--border-radius) */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Replaced var(--box-shadow) */
    //font-family: Arial, sans-serif; /* Replaced var(--font-family) */
    //font-size: 14px; /* Replaced var(--font-size) */
    margin: 10px;
}

.dark-mode .atm-values {
    background-color: #333; /* Replaced var(--background-color) */
    border-color: #555; /* Replaced var(--border-color) */
    //box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1); /* Replaced var(--box-shadow) */
}

.atm-values div {
    display: flex;
    //align-items: center;
    flex-direction: column;
    //text-align: center;
    margin: auto;
}

.atm-values .label {
    color: #555; /* Replaced var(--label-color) */
    /* Space between label and value */
    font-size: small;
}

.dark-mode .atm-values .label {
    color: #aaa; /* Replaced var(--label-color) */
}

.atm-values .value {
    color: #333; /* Replaced var(--value-color) */
    font-weight: bold;
    font-size: medium;
}

.dark-mode .atm-values .value {
    color: #ddd; /* Replaced var(--value-color) */
}

.atm-values > div {
    padding: 6px 10px;
    border-left: 1px solid #ccc;
}

    .atm-values > div:first-child {
        border-left: none;
    }

.LTT {
    padding: 7px;
    border-radius: 6px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    background: white;
    color: #333;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.dark-mode .LTT {
    background: #333;
    color: #ddd;
    border: 1px solid #555;
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.1);
}

/* General highlight style */
.highlight {
    background-color: #ffeb3b !important; /* Yellow for emphasis */
    font-weight: bold !important;
    transition: background-color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

/* Dark Mode Styling */
.dark-mode .highlight {
    color: black !important;
    background-color: #ffe600 !important;
}
/* Light Mode Styling */
.light-mode .highlight {
    color: black;
}
/* Shared Navbar Styling */
/*.color {
    display: flex;
    justify-content: space-between;
    overflow-x: hidden;
    white-space: nowrap;
}*/
/* Dark Mode Navbar */
.dark-mode .color {
    background-color: #1F1F1F;
    color: white;
}
/* Light Mode Navbar */
.light-mode .color {
    background-color: rgb(240, 240, 240);
    color: black;
}

.straddle-toggle, .Strangle-toggle {
    display: flex;
    justify-content: space-between;
    //margin-top: 10px;
    /*gap: 5px;*/
}

.layout-btn {
    //padding: 3px 10px;
    border: 5px solid #f3f3f3;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    width: 50px; /* Fixed width */
    height: 50px;
    font-size: small;
    text-align: center;
    flex: 1;
    background-color: #2d3748;
    color: white;
}

    .layout-btn.active {
        border: 5px solid #3b82f6;
        border-radius: 50px;
        //background-color: #007bff;
        //color: white;
        //border-color: #007bff;
    }

    .layout-btn:hover {
        border: 5px solid #3b82f6;
    }

body.dark-mode .layout-btn {
    //padding: 3px 10px;
    border: 5px solid #1c1c1c;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    text-align: center;
    flex: 1;
    background-color: white;
    color: black;
}

    body.dark-mode .layout-btn.active {
        border: 5px solid #3b82f6;
        border-radius: 40px;
        //background-color: #007bff;
        //color: white;
        //border-color: #007bff;
    }

    body.dark-mode .layout-btn:hover {
        border: 5px solid #3b82f6;
    }

.grid-container {
    display: grid;
    gap: 10px;
    padding: 10px;
}

/* Default layout for small screens */
.layout-1x1 {
    grid-template-columns: 1fr;
}

.layout-1x2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adjusts based on screen size */
}

.layout-2x2 {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
}

.layout-3x2 {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
}

.layout-4x2 {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
}
/* Responsive adjustments */
@media (max-width: 1024px) {
    .layout-2x2, .layout-3x2 {
        grid-template-columns: repeat(2, minmax(200px, 1fr)); /* Two columns on medium screens */
    }
}

@media (max-width: 768px) {
    .layout-1x2, .layout-2x2, .layout-3x2 {
        grid-template-columns: 1fr; /* Fully stacked layout for mobile */
    }
}

.ui-container {
    border: 1px solid #ccc; /* Optional: add a border around each element */
    background-color: #f9f9f9;
    border-radius: 6px;
}

.dark-mode .ui-container {
    border-color: white; /* Optional: add a border around each element */
    background-color: black;
}





/* Default (light mode) body styling */
/*body {
    background-color: #f0f0f0;
    color: #000;
    transition: background-color 0.3s ease, color 0.3s ease;
}*/

/* Dark mode body styling */
/*body.dark-mode {
        background-color: #0e1621;*/ /* Dark background */
/*color: #fff;
    }*/
.user-profile-wrapper {
    position: relative;
    display: inline-block;
    //margin-right: 20px;
}


.profile-icon {
    width: 40px;
    height: 40px;
    background-color: #2d3748;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    border: 2px solid #3b82f6;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 48px;
    right: 0;
    background-color: #f0f0f0;
    color: #000;
    min-width: 220px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    border-radius: 6px;
    z-index: 1000;
    overflow: hidden;
}

    .dropdown-content .profile-header {
        padding: 12px 16px;
        font-weight: bold;
        background-color: #f0f0f0;
        color: #000;
        border-bottom: 1px solid #374151;
    }

    .dropdown-content a {
        padding: 12px 16px;
        text-decoration: none;
        display: flex;
        align-items: center;
        color: #000;
        border-bottom: 1px solid #374151;
    }

        .dropdown-content a i {
            margin-right: 10px;
            color: #3b82f6;
            width: 20px;
            text-align: center;
        }

        .dropdown-content a:hover {
            background-color: #374151;
            color: white;
        }

        .dropdown-content a.active {
            background-color: #2d3748;
            border-left: 4px solid #3b82f6;
        }


/* DARK MODE: Profile Dropdown Support */
.dark-mode .user-profile-wrapper {
    background-color: #0e1621; /* Dark background */
    color: #fff;
}

.dark-mode .dropdown-content {
    background-color: #111827;
    color: white;
}

    .dark-mode .dropdown-content .profile-header {
        background-color: #0f172a;
        border-bottom: 1px solid #2d3748;
        color: white;
    }

    .dark-mode .dropdown-content a {
        color: white;
        border-bottom: 1px solid #2d3748;
    }

        .dark-mode .dropdown-content a:hover {
            background-color: #2d3748;
        }

.dark-mode .theme-toggle-switch-wrapper {
    background-color: transparent;
}

.dark-mode .theme-toggle-label {
    background-color: #333;
}

    .dark-mode .theme-toggle-label .fa-moon {
        color: #f1c40f;
    }

    .dark-mode .theme-toggle-label .fa-sun {
        color: white;
    }

body, .dropdown-content, .profile-header {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle-switch-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
}

.theme-toggle-switch {
    opacity: 0;
    position: absolute;
}

.theme-toggle-label {
    background-color: #111;
    width: 60px;
    height: 30px;
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    box-sizing: border-box;
    color: #000;
    background-color: white;
}


    .theme-toggle-label .icon {
        z-index: 1;
        color: #f1c40f;
        font-size: 14px;
    }

        .theme-toggle-label .icon.moon {
            color: #f1c40f;
        }


    .theme-toggle-label .ball {
        background-color: #000;
        width: 24px;
        height: 24px;
        position: absolute;
        top: 3px;
        left: 3px;
        border-radius: 50%;
        transition: transform 0.3s ease;
        z-index: 2;
    }

.theme-toggle-switch:checked + .theme-toggle-label .ball {
    transform: translateX(30px);
}

.disclaimer-wrapper,
.footer-links-wrapper,
footer {
    text-align:center;
    background: #f9f9f9;
}

.footer-links,
.disclaimer {
    margin: 0 auto;
    padding: 2px;
    text-align: center;
    color: #444;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding: 5px;
}

    .footer-links a {
        color: #3b82f6;
        text-decoration: none;
        padding: 0 6px;
    }

        .footer-links a:hover {
            text-decoration: underline;
        }

.disclaimer {
    border-top: 1px solid #ccc;
    color: #666;
}

    .disclaimer strong {
        display: block;
        margin-top: 10px;
        color: #222;
    }

footer {
    text-align: center;
    font-size: 14px;
    padding: 15px;
    background: #f1f1f1;
    color: #333;
    border-top: 1px solid #e0e0e0;
}

    footer a {
        color: #007bff;
        text-decoration: none;
        font-weight: bold;
    }





body.dark-mode .footer-links-wrapper,
body.dark-mode .disclaimer-wrapper,
body.dark-mode footer {
    background: #1a1a1a;
}

body.dark-mode .footer-links,
body.dark-mode .disclaimer,
body.dark-mode footer {
    color: #ccc;
}

    body.dark-mode .footer-links a {
    }

    body.dark-mode .disclaimer strong {
        color: #fff;
    }

body.dark-mode footer {
    border-top: 1px solid #333;
}

    body.dark-mode footer a {
        color: #4dabf7;
    }









/* Top Navigation Menu */
.top-nav {
    background-color: #ffffff;
    padding: 0;
    margin: 0 height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

    .top-nav .nav-list {
        list-style: none;
        display: flex;
        align-items: center;
        background-color: #f3f3f3;
        gap: 20px;
        margin: 0;
        padding: 0;
    }

.nav-list li {
    position: relative;
}

    .nav-list li.active {
        position: relative;
        background-color: #3b82f6;
    }

.nav-list a {
    text-decoration: none;
    color: #000;
    /*color:white;*/
    font-weight: 600;
    justify-content: center;
    font-size: 14px;
    transition: color 0.2s;
}

    .nav-list a.activ {
        color: white;
    }


@media (max-width: 768px) {
    .top-nav {
        flex-direction: column;
        height: auto;
        padding: 10px 0;
    }

        .top-nav .nav-list {
            flex-direction: column;
            gap: 10px;
            width: 100%;
            align-items: flex-start;
            padding: 10px;
        }

    .nav-list a {
        font-size: 16px;
        padding: 10px;
        width: 100%;
        text-align:center;
    }

    .nav-list li {
        width: 100%;
    }

        .nav-list li.active {
            width: 100%;
        }
}


    /* Dark mode styles */
    body.dark-mode .top-nav {
        background-color: #1c1c1c;
    }

        body.dark-mode .top-nav .nav-list {
            list-style: none;
            display: flex;
            align-items: center;
            background-color: black;
            gap: 20px;
            margin: 0;
            padding: 0;
        }

    body.dark-mode .nav-list a.activ {
        color: white;
    }

    body.dark-mode .nav-list a {
        color: #000;
    }



    /* Dropdown container */
    .nav-list .dropdown {
        position: relative;
        border: 1px solid #444;
        border-radius: 10px;
        flex-wrap: wrap;
        background-color: white;
        max-width: 135px;
        text-align: center;
        align-content:center;
        height:30px;
    }
    /* Dropdown menu hidden by default */
    .nav-list .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        padding-left: 0px;
        background: #fff;
        border: 1px solid #ddd;
        z-index: 1000;
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }

        .nav-list .dropdown-menu li {
            list-style: none;
            padding: 8px;
        }

            .nav-list .dropdown-menu li a {
                color: #000;
                font-size: 14px;
                font-weight: normal;
                display: block;
            }

                .nav-list .dropdown-menu li a:hover {
                    background-color: #f3f3f3;
                }

    /* Show dropdown on hover */
    .nav-list .dropdown:hover .dropdown-menu {
        display: block;
    }

    .nav-list .dropdown::after {
        content: ""; /* ❌ REMOVE this block if it exists */
    }

    .nav-list .dropdown:has(.dropdown-menu)::after {
        content: "▼";
        position: absolute;
        right: 8px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 10px;
        color: #000;
        pointer-events: none;
    }

    .nav-list .dropdown.active:has(.dropdown-menu)::after {
        content: "▼";
        color: white;
    }
    /* Dark mode support */
    body.dark-mode .dropdown-menu {
        background: #1c1c1c;
        border-color: #444;
    }

        body.dark-mode .dropdown-menu li a {
            color: #fff;
        }

            body.dark-mode .dropdown-menu li a:hover {
                background-color: #2a2a2a;
            }




    .icon-toolbar {
        color: black;
    }

    /* When dark mode is active */
    body.dark-mode .icon-toolbar {
        color: white;
    }

    #splitter-wrapper {
        height: 100%;
        display: flex;
        flex-direction: column;
    }

    /*#splitter {
    height: 15px;
    background: #f3f3f3;
    color: #000;
    text-align: right;
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    line-height: 15px;
    margin-top: 10px;
}

body.dark-mode #splitter {
    height: 15px;
    background: #333;
    color: #fff;
    text-align: right;
    cursor: pointer;
    user-select: none;
    font-size: 18px;
    line-height: 15px;
    margin-top: 10px;
}*/


#splitter {
    box-shadow: 0 1px 3px rgba(0,0,0,0.3) inset;
    height: 20px;
    background: linear-gradient(to bottom, #d0d0d0, #e0e0e0);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    transition: background 0.3s;
    margin-top: 10px;
    border-radius: 5px;
    width: 50%;
    justify-self: anchor-center;
}

        #splitter:hover {
            background: linear-gradient(to right, #cccccc, #bbbbbb);
        }

    body.dark-mode #splitter {
        box-shadow: 0 1px 3px rgba(0,0,0,0.3) inset;
        height: 20px;
        background: linear-gradient(to right, #3a3a3a, #2c2c2c);
        color: #ccc;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        user-select: none;
        font-size: 16px;
        transition: background 0.3s;
        margin-top: 10px;
        border-radius: 5px;
        width: 50%;
        justify-self: anchor-center;
    }

        body.dark-mode #splitter:hover {
            background: linear-gradient(to right, #555, #444);
        }

    #tableSection {
        overflow: auto;
    }

    .past-holiday td {
        background-color: #f0f0f0 !important;
        color: #888 !important;
    }

    body.dark-mode .past-holiday td {
        background-color: #565656 !important;
        color: #FFF !important;
    }

    .new-label-container {
        position: relative;
        display: inline-block;
    }

    .new-label {
        position: absolute;
        top: -8px;
        right: -8px;
        background: #ff4757;
        color: white;
        padding: 2px 6px;
        font-size: 12px;
        font-weight: bold;
        border-radius: 12px;
        animation: pulse 1.5s infinite;
        box-shadow: 0 0 5px rgba(255, 71, 87, 0.5);
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
            opacity: 1;
        }

        50% {
            transform: scale(1.2);
            opacity: 0.8;
        }

        100% {
            transform: scale(1);
            opacity: 1;
        }
    }


.theme-button {
    border: 5px solid #f3f3f3;
    border-radius: 50px;
    font-size: 20px; /* Adjust icon size */
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    background-color: #2d3748;
    color: white;
    width: 50px; /* Fixed width */
    height: 50px; /* Fixed height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align:center;
    cursor: pointer;
}
body.dark-mode .theme-button {
    border: 5px solid #1c1c1c;
    border-radius: 50px;
    background-color: white;
    color: black;
}

body {
    background-color: white;
    color: black;
    transition: background 0.3s, color 0.3s;
}

    body.dark-theme {
        background-color: #121212;
        color: white;
    }
