 
        /* --- General HTML and BODY settings to remove full page scroll --- */
        html, body {
            height: 100%; /* Ensure html and body take full page height */
            margin: 0;
            padding: 0;
            /*overflow: hidden; !* **Important: No vertical or horizontal scrollbars for the entire page (body and html)** *!*/
        }

        body {
            font-family: 'Vazirmatn', sans-serif;
            background-color: #f8f9fa;
            transition: background-color 0.3s, color 0.3s;
            display: flex;
            flex-direction: column;
            min-height: 100vh; /* Sets minimum page height to 100% of viewport height */
            overflow-y: hidden;
        }
        .dark-mode {
            background-color: #343a40;
            color: #f8f9fa;
        }
        .dark-mode .navbar {
            background-color: #212529 !important;
            color: #f8f9fa !important;
        }
        .dark-mode .navbar-brand {
            color: #f8f9fa !important;
        }

        /* --- Main content container (main) for flexible space management --- */
        main {
            flex-grow: 1; /* This element occupies all remaining space between navbar and footer */
            display: flex;
            flex-direction: column;
            padding: 1rem 15px; /* Top, bottom, left, and right padding for the container */
            box-sizing: border-box; /* Padding included within width and height */
        }

        /* No need to reset .container as main already has padding */
        .container {
            width: 100%; /* Ensure containers occupy full width */
            margin-left: auto;
            margin-right: auto;
            /* Remove Bootstrap's default .container paddings to avoid conflict */
            padding-left: 0 !important;
            padding-right: 0 !important;
        }
        /* Set max-width for .container according to Bootstrap */
        @media (min-width: 576px) { .container { max-width: 540px; } }
        @media (min-width: 768px) { .container { max-width: 720px; } }
        @media (min-width: 992px) { .container { max-width: 960px; } }
        @media (min-width: 1200px) { .container { max-width: 1140px; } }
        @media (min-width: 1400px) { .container { max-width: 1320px; } }

        /* --- Filter button styles --- */
        .btn-group .btn {
            transition: background 0.2s, color 0.2s, border-color 0.2s;
            box-shadow: none !important;
            outline: none !important;
            background-color: transparent;
            color: #0d6efd;
            border-color: #0d6efd;
            border-radius: 0 !important;
        }
        .btn-group > .btn:first-child {
            border-top-right-radius: var(--bs-border-radius, 0.375rem) !important;
            border-bottom-right-radius: var(--bs-border-radius, 0.375rem) !important;
            border-top-left-radius: 0 !important;
            border-bottom-left-radius: 0 !important;
        }
        .btn-group > .btn:last-child {
            border-top-left-radius: var(--bs-border-radius, 0.375rem) !important;
            border-bottom-left-radius: var(--bs-border-radius, 0.375rem) !important;
            border-top-right-radius: 0 !important;
            border-bottom-right-radius: 0 !important;
        }
        .btn-group .btn.active,
        .btn-group .btn:focus {
            background-color: #0d6efd;
            color: #fff;
            border-color: #0d6efd;
            box-shadow: none !important;
            outline: none !important;
        }
        .btn-group .btn:hover:not(.active) {
            background-color: #e9ecef;
            color: #0d6efd;
            border-color: #0d6efd;
        }
        body.dark-mode .btn-group .btn.active,
        body.dark-mode .btn-group .btn:focus {
            background-color: #ffdf00;
            color: #23262a;
            border-color: #ffdf00;
            box-shadow: none !important;
            outline: none !important;
        }
        body.dark-mode .btn-outline-primary {
            color: #ffdf00;
            border-color: #ffdf00;
            background-color: transparent;
        }
        body.dark-mode .btn-outline-primary:hover:not(.active) {
            background-color: #ffdf00;
            color: #23262a;
            border-color: #ffdf00;
        }
        /* --- End filter button styles --- */

        .dark-mode .form-control {
            background-color: #495057;
            color: #f8f9fa;
            border-color: #6c757d;
        }
        .dark-mode .form-control::placeholder {
            color: #ced4da;
            opacity: 0.7;
        }
        .dark-mode .table {
            --bs-table-bg: #212529;
            --bs-table-color: #f8f9fa;
            --bs-table-striped-bg: #2c3034;
            --bs-table-striped-color: #f8f9fa;
            --bs-table-hover-bg: #373b3e;
            --bs-table-hover-color: #f8f9fa;
            --bs-table-border-color: #495057;
        }

        /* --- table-responsive height setting and scroll management (most important part) --- */
        .table-responsive {
            overflow-y: auto; /* **Important: Vertical scroll only for the table** */
            overflow-x: auto; /* Horizontal scroll for the table */
            position: relative;
            /* **Set fixed height to display 10 rows (approx 40px per row + 50px for header)** */
            max-height: 450px; /* Adjust this value based on your approximate 10-row height */
        }


        /* --- Table specific changes --- */
        .table td {
            white-space: nowrap !important; /* **Text remains on a single line** */
            overflow: hidden !important;     /* **Overflow content is hidden** */
            text-overflow: ellipsis !important; /* **Show ellipsis for long texts** */
            min-width: 50px !important;
            width: auto !important;
            box-sizing: border-box !important;
            padding: 8px !important; /* Proper spacing */
            vertical-align: top !important;
            text-align: center !important;
        }

        .table th {
            white-space: nowrap !important; /* Headers remain on a single line */
            overflow: hidden !important;
            text-overflow: ellipsis !important;
            min-width: 50px !important;
            box-sizing: border-box !important;
            padding: 8px !important; /* Proper spacing */
            text-align: center !important;
            position: sticky !important;
            top: 0 !important;
            z-index: 2 !important;
            background-color: var(--bs-table-bg, #f8f9fa) !important;
        }
        /* --- End table specific changes --- */

        /* --- Theme toggle button styles --- */
        .theme-toggle-container {
            display: flex;
            align-items: center;
            margin-right: auto;
            margin-left: 15px;
        }

        .navbar .container-fluid {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .theme-toggle {
            background: var(--toggle-bg, #a0a0a0);
            border: 2px solid var(--toggle-border, #808080);
            border-radius: 1.2em;
            cursor: pointer;
            display: flex;
            font-size: 0.9rem;
            padding: 0.1em;
            position: relative;
            width: 3.5em;
            height: 2em;
            justify-content: space-between;
            align-items: center;
            transition: transform 0.3s ease, background-color 0.3s ease;
            overflow: hidden;
        }



        .theme-toggle:focus {
            outline: none;
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        }

        .theme-toggle .light-icon,
        .theme-toggle .dark-icon {
            position: absolute;
            transition: transform 0.3s ease, opacity 0.3s ease;
            font-size: 1em;
        }

        .theme-toggle .light-icon {
            left: 0.3em;
            opacity: 1;
        }

        .theme-toggle .dark-icon {
            right: 0.3em;
            opacity: 0;
            transform: translateX(100%);
        }

        .theme-toggle .toggle-track {
            background-color: #fff;
            border-radius: 50%;
            position: absolute;
            top: 0.09em;
            left: 0.1em;
            width: 1.6em;
            height: 1.6em;
            transition: transform 0.3s ease, background-color 0.3s ease;
            box-shadow: 0 0.1em 0.3em rgba(0, 0, 0, 0.2);
        }

        .dark-mode .theme-toggle {
            --toggle-bg: #0d6efd;
            --toggle-border: #0a58ca;
        }

        .dark-mode .theme-toggle .light-icon {
            opacity: 0;
            transform: translateX(-100%);
        }

        .dark-mode .theme-toggle .dark-icon {
            opacity: 1;
            transform: translateX(0);
        }

        .dark-mode .theme-toggle .toggle-track {
            transform: translateX(1.5em);
            background-color: #f8f9fa;
        }
        /* --- End theme toggle button styles --- */

        /* --- Footer and last modified styles --- */
        footer {
            background-color: #f8f9fa;
            border-top: 1px solid #e9ecef;
            color: #6c757d;
            text-align: center;
            flex-shrink: 0; /* Prevent footer from shrinking */
            padding: 15px 0; /* Padding for footer's inner space */
        }
        .dark-mode footer {
            background-color: #212529;
            border-top-color: #495057;
            color: #f8f9fa;
        }
        .last-modified-container {
            font-size: 0.85rem;
        }
        .last-modified-container p {
            margin-bottom: 0;
            color: inherit;
        }
        .dark-mode .last-modified-container p {
            color: inherit !important;
        }
        /* --- End footer and last modified styles --- */

        .search-input-container {
            position: relative;
            margin-bottom: 1rem;
        }
        /* --- Search icon settings --- */
        .search-input-container i {
            position: absolute;
            left: 0 !important; /* Position search icon to the left */
            top: 50% !important;
            transform: translateY(-50%) !important;
            color: #6c757d !important;
            z-index: 10 !important;
            font-size: 1.1rem !important;
            /* padding: 10px;*/
            padding-left: 10px;
            padding-right: 10px;
            padding-bottom: 20px;

        }
        .form-control-search {
            padding-left: 45px !important; /* Adjust padding to make space for the icon */
            padding-right: 15px !important;
        }
        /* --- End search icon settings --- */

        /* --- New styles for click-to-copy functionality --- */
        .table-cell-copyable {
            position: relative;
            cursor: pointer;
            padding-right: 25px !important; /* Padding for copy icon on the right */
            text-align: right !important; /* Align text to the right */
            white-space: nowrap !important;
            overflow: hidden !important;
            text-overflow: ellipsis !important;
        }

        .copy-icon {
            position: absolute;
            right: 8px; /* Position icon to the right of the cell */
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.9em;
            color: #6c757d;
            opacity: 0;
            transition: opacity 0.2s ease-in-out;
            pointer-events: none; /* Icon does not interfere with clicks until hovered */
        }

        .table-cell-copyable:hover .copy-icon {
            opacity: 1;
            pointer-events: auto; /* Enable clicks on icon when hovered */
        }

        .dark-mode .copy-icon {
            color: #ced4da;
        }

        .copy-message {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: rgba(0, 0, 0, 0.8);
            color: #fff;
            padding: 5px 10px;
            border-radius: 5px;
            font-size: 0.8rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease-in-out;
            z-index: 1000;
            white-space: nowrap;
        }

        .copy-message.show {
            opacity: 1;
        }
        /* --- End new styles for click-to-copy functionality --- */

        /* --- Media Query for responsive mode (mobile) --- */
        @media (max-width: 767px) {
            .navbar-brand {
                font-size: 0.9rem;
            }
            .navbar .container-fluid {
                flex-wrap: nowrap;
            }

            .btn-group .btn {
                font-size: 0.8rem;
                padding: 0.375rem 0.5rem;
            }
            .search-input-container {
                margin-bottom: 0.5rem;
            }
            .table td,
            .table th {
                padding: 6px !important; /* Smaller padding for mobile */
            }
            .theme-toggle {
                font-size: 0.8rem;
                width: 3em;
                height: 1.8em;
            }
            .theme-toggle .toggle-track {
                width: 1.4em;
                height: 1.4em;
                top: 0.07em;
                left: 0.1em;
            }
            .dark-mode .theme-toggle .toggle-track {
                transform: translateX(1.2em);
            }
            .theme-toggle .light-icon,
            .theme-toggle .dark-icon {
                font-size: 0.9em;
            }
            footer {
                padding-top: 10px;
                padding-bottom: 70px;
            }
            .last-modified-container {
                font-size: 0.75rem;
            }
            .table-cell-copyable {
                padding-right: 25px !important;
            }
            .copy-icon {
                right: 5px; /* Copy icon position on mobile */
                font-size: 0.8em;
            }
            .table-responsive {
                max-height: 350px; /* Smaller max-height for mobile */
            }
        }
        /* --- Style for warning message --- */
        .warning-message {
            color: red;
            font-size: 0.85em;
            margin-top: 5px;
            text-align: right;
            height: 1.2em; /* To prevent layout jumps */
            opacity: 0;
            transition: opacity 0.3s ease-in-out;
        }
        .warning-message.show {
            opacity: 1;
        }
        