body {
    font-family: 'Quicksand', sans-serif;
    font-size: 19px;
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 60px; /* Fallback padding to account for dynamic header height */
}

#page-header {
    background-color: rgba(31, 41, 55, 0.9);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 20;
    min-height: 48px; /* Ensure header doesn’t collapse too small */
    padding: 8px 16px; /* Consistent padding */
}

#pilotInfoHeader {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem; /* Reduced from 3rem for better mobile fit */
    align-items: center;
    color: #F3F4F6;
    font-size: 14px;
    font-weight: bold;
    white-space: normal; /* Allow text to wrap naturally */
    line-height: 1.4; /* Improve readability for wrapped text */
    padding: 4px 8px; /* Padding to prevent text from touching edges */
}

#pilotInfoHeader .percentage {
    margin-left: 0.5rem; /* Subtle space before percentage */
}

body.dark-mode #pilotInfoHeader {
    color: #F3F4F6;
}

/* Responsive adjustments for mobile */
@media (max-width: 640px) {
    #pilotInfoHeader {
        font-size: 12px; /* Smaller font size for mobile */
        padding: 4px; /* Tighter padding */
        gap: 0.5rem; /* Smaller gap for mobile */
    }
}

@media (max-width: 400px) {
    #pilotInfoHeader {
        font-size: 10px; /* Even smaller for very small screens */
    }
}

textarea {
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: pre;
    opacity: 0.7;
    transition: box-shadow 0.3s ease;
}

textarea::-webkit-scrollbar {
    display: none;
}

textarea::placeholder {
    font-family: 'Quicksand', sans-serif;
    color: #9CA3AF;
    text-align: left;
    opacity: 1;
    font-size: 19px;
}

summary {
    cursor: pointer;
    transition: color 0.3s ease;
}

.subtext {
    font-size: 13px;
    font-weight: 400;
    padding-top: 0;
    padding-bottom: 0;
}

#dark-mode-toggle:checked + label {
    background-color: #4B5563;
}

#dark-mode-toggle:checked + label span {
    transform: translateX(.875rem);
}

/* Dark mode toggle in dark mode */
body.dark-mode #dark-mode-toggle + label {
    background-color: #60A5FA; /* Light blue for better contrast */
}

#hamburger-menu {
    background-color: #E5E7EB;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
}

#hamburger-menu:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

button svg {
    width: 24px;
    height: 24px;
}

button {
    transition: background-color 0.3s ease;
}

.logo-container {
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(31, 41, 55, 0.9); /* Match #page-header background in light mode */
}

.logo-container svg {
    width: 120px;
    height: 120px;
    stroke: currentColor; /* Explicitly ensure stroke uses currentColor */
}

.logo {
    font-size: 60px;
    font-weight: 700;
    min-height: 72px; /* Prevent layout shift during typing */
    position: relative;
    display: inline-block;
    color: rgba(31, 41, 55, 0.9); /* Match #page-header background in light mode */
}

.logo::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%; /* Center vertically */
    height: 50%; /* Half the text height */
    width: 3px;
    background: rgba(31, 41, 55, 0.9); /* Match #page-header background in light mode */
    animation: blink 0.5s step-end infinite;
}

.logo.no-cursor::after {
    display: none;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Dark mode: Logo and text match header background */
body.dark-mode .logo-container {
    color: rgba(107, 114, 128, 0.9); /* Match dark mode #page-header */
}

body.dark-mode .logo-container svg {
    stroke: currentColor; /* Ensure stroke uses currentColor */
}

body.dark-mode .logo {
    color: rgba(107, 114, 128, 0.9); /* Match dark mode #page-header */
}

body.dark-mode .logo::after {
    background: rgba(107, 114, 128, 0.9); /* Match dark mode #page-header */
}

/* Rest of the CSS remains unchanged */
textarea {
    padding: 15px 25px 15px 45px;
    font-family: 'Quicksand', sans-serif;
    font-size: 19px;
}

#result {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#result:not(.hidden) {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth Collapsible Sections */
details {
    transition: height 0.3s ease;
    overflow: hidden;
}

details[open] > summary {
    color: #333;
}

details > div, details > table {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease;
}

details[open] > div, details[open] > table {
    opacity: 1;
    max-height: 1000px;
}

#firstGlanceSection {
    font-size: 22px;
    margin-bottom: 20px;
}

#totalPayHours {
    font-size: 20px;
}

#blockHoursFlown {
    font-size: 18px;
}

.text-lg {
    font-size: 20px !important;
}

.text-sm {
    font-size: 17px !important;
}

.total-row {
    border-top: 1px solid #d1d5db;
}

.breakdown-table {
    table-layout: auto;
    width: 100%;
}

.breakdown-table th {
    font-size: 14px;
    font-weight: 600;
    white-space: normal;
    word-wrap: normal;
}

.breakdown-table th,
.breakdown-table td {
    border-right: 1px solid #d1d5db;
    padding: 4px 8px;
}

.breakdown-table th:last-child,
.breakdown-table td:last-child {
    border-right: none;
}

.pay-discrepancy {
    background-color: rgba(255, 0, 0, 0.5);
    color: #ffffff;
}

/* Modal Animations */
#noDataModal, #contactModal, #donateModal {
    opacity: 0;
    transition: opacity 0.3s ease;
}

#noDataModal:not(.hidden), #contactModal:not(.hidden), #donateModal:not(.hidden) {
    opacity: 1;
}

#noDataModal .modal-content, #contactModal .modal-content, #donateModal .modal-content {
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease 0.1s, opacity 0.3s ease 0.1s;
}

#noDataModal:not(.hidden) .modal-content, #contactModal:not(.hidden) .modal-content, #donateModal:not(.hidden) .modal-content {
    transform: scale(1);
    opacity: 1;
}

body.dark-mode #hamburger-menu {
    background-color: #4B5563;
}

body.dark-mode #hamburger-menu a {
    color: #F3F4F6;
    font-size: 19px;
}

body.dark-mode #hamburger-menu a:hover {
    background-color: #6B7280;
}

body.dark-mode #hamburger-menu span {
    color: #F3F4F6;
    font-size: 17px;
}

body.dark-mode #hamburger-btn svg {
    color: #F3F4F6;
}

body.dark-mode #pilotInfoHeader {
    color: #F3F4F6;
}

body.dark-mode #page-header {
    background-color: rgba(107, 114, 128, 0.9);
}

body.dark-mode {
    background-color: #1F2937;
    color: #F3F4F6;
}

body.dark-mode h1 {
    color: #F3F4F6;
}

body.dark-mode .text-gray-900 {
    color: #F3F4F6;
}

body.dark-mode textarea {
    background-color: #374151;
    color: #F3F4F6;
    border-color: #6B7280;
}

body.dark-mode textarea::placeholder {
    color: #9CA3AF;
}

body.dark-mode button {
    background-color: #4B5563;
}

body.dark-mode button:hover {
    background-color: #6B7280;
}

body.dark-mode #summaryContainer {
    background-color: #4B5563;
    border-color: #6B7280;
    color: #F3F4F6;
}

body.dark-mode #summaryContainer table {
    color: #FFFFFF;
}

body.dark-mode .bg-white {
    background-color: #374151;
}

body.dark-mode .bg-gray-100 {
    background-color: #4B5563;
}

body.dark-mode #noDataModal .bg-white,
body.dark-mode #contactModal .bg-white,
body.dark-mode #donateModal .bg-white {
    background-color: #374151;
}

body.dark-mode #noDataModal h3,
body.dark-mode #contactModal h3,
body.dark-mode #donateModal h3 {
    color: #F3F4F6;
}

body.dark-mode #noDataModal p,
body.dark-mode #contactModal p,
body.dark-mode #donateModal p {
    color: #D1D5DB;
}

body.dark-mode #noDataModal button,
body.dark-mode #contactModal button,
body.dark-mode #donateModal button {
    background-color: #4B5563;
}

body.dark-mode #noDataModal button:hover,
body.dark-mode #contactModal button:hover,
body.dark-mode #donateModal button:hover {
    background-color: #6B7280;
}

/* Donation Modal Specific Styles */
#donateModal .modal-content {
    max-width: 600px;
    padding: 28px;
    width: 90%;
}

.donation-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.donation-links a {
    transition: transform 0.2s ease;
}

.donation-links a:hover {
    transform: scale(1.1);
}

.donation-links svg {
    width: 40px;
    height: 40px;
}

.donation-links img {
    max-height: 40px;
}

/* Contact Modal Specific Styles */
#contactModal .modal-content {
    max-width: 500px;
    padding: 24px;
    width: 90%;
}

/* Summary Table Styles */
.summary-table {
    font-family: 'Quicksand', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    width: 100%;
}

.summary-table .subtotal-negative-group {
    border: none;
}

.summary-table .subtotal-value td:last-child {
    font-weight: 600;
}

.summary-table .negative-bank td {
    font-weight: normal !important;
}

.summary-table .total {
    font-weight: 700;
    border-top: 1px solid #d1d5db;
}

.summary-table th,
.summary-table td {
    border-right: none;
    border-top: none;
}

body.dark-mode .summary-table .total {
    border-top: 1px solid #6B7280;
}

/* Welcome Message Styles */
#welcomeMessage {
    display: none; /* Hidden by default, controlled by JavaScript */
    margin: 16px auto; /* Center horizontally with margin, add vertical spacing */
    max-height: 80vh; /* Limit height to 80% of viewport height */
    overflow-y: auto; /* Allow scrolling if content overflows */
    z-index: 40; /* Below other modals (z-index: 50) but above content */
    background: rgba(255, 255, 255, 0.9); /* Slightly transparent white background */
    border: 4px solid #cc0e00; /* Keep the red border */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Updated shadow for depth */
    text-align: center; /* Center text */
    border-radius: 2rem; /* Rounded corners */
}

/* Ensure the close button is always visible and accessible in the top-right corner */
#closeWelcomeMessageBtn {
    position: absolute; /* Position relative to the modal */
    top: 8px; /* Small offset from the top */
    right: 8px; /* Small offset from the right */
    background: rgba(255, 255, 255, 0.8); /* Slight background for visibility */
    padding: 4px; /* Add padding for better touch target */
}

/* Show the welcome message when not hidden */
#welcomeMessage:not(.hidden) {
    display: block;
    opacity: 1;
}

/* Dark mode styles for welcome message */
body.dark-mode #welcomeMessage {
    background: rgba(55, 65, 81, 0.9); /* Adjusted to match light mode transparency */
    border-color: #cc0e00;
}

body.dark-mode #welcomeMessage h3 {
    color: #F3F4F6;
}

body.dark-mode #welcomeMessage p {
    color: #F3F4F6;
}

body.dark-mode #welcomeMessage #closeWelcomeMessageBtn {
    color: #D1D5DB;
}

body.dark-mode #welcomeMessage #closeWelcomeMessageBtn:hover {
    color: #F3F4F6;
}

/* Media query for mobile devices */
@media (max-width: 640px) {
    #welcomeMessage {
        width: 90%; /* Use more width on mobile */
        max-height: 70vh; /* Slightly smaller height on mobile */
        padding: 16px; /* Consistent padding */
        top: 70px; /* Position below the header (48px) with some margin */
        margin-bottom: 16px; /* Add space below the modal to avoid overlapping the logo */
    }
}

.resize-handle {
    width: 10px;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    cursor: col-resize;
}

/* Records.html Specific Styles */
.label-text {
    font-weight: 400;
}

.status-toggle:hover,
.sessions-btn:hover {
    opacity: 0.8;
}

.records-table th,
.records-table td {
    padding: 8px;
    text-align: left;
    position: relative;
}

.records-table th {
    border-right: 1px solid #d1d5db;
}

.records-table th.resizable {
    resize: horizontal;
    overflow: auto;
    cursor: col-resize;
}

.records-table th.fixed-width {
    width: 50px;
    resize: none;
    cursor: default;
}

.sortable {
    position: relative;
    padding-right: 16px;
}

.sortable:hover {
    background-color: #d1d5db;
}

.sort-arrow {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.expand-btn {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.details-row {
    display: none;
}

.details-row.expanded {
    display: table-row;
}

.modal-content {
    padding: 24px;
    max-width: 90vw;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

#user-access-modal .modal-content {
    max-width: 1200px;
}

#timecard-text-modal .modal-content {
    display: flex;
    flex-direction: column;
    width: auto;
    max-width: 90vw;
    height: 70vh;
    min-height: 200px;
    max-height: 70vh;
    padding: 24px;
    box-sizing: border-box;
}

#timecard-text-modal .modal-content h3 {
    margin: 0 0 16px 0;
    flex-shrink: 0;
}

#timecard-text-modal textarea {
    width: auto;
    height: auto;
    min-height: 100px;
    max-height: calc(70vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
    resize: none;
    white-space: pre;
    box-sizing: border-box;
    font-size: 14px;
    line-height: 1.5;
    flex-grow: 1;
}

#timecard-text-modal .modal-content .flex {
    margin-top: 16px;
    flex-shrink: 0;
    justify-content: flex-end;
}

#user-access-modal .toolbar {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f3f4f6;
    border-radius: 8px;
}

#user-access-modal .toolbar > div.flex.items-center {
    justify-content: space-between;
    width: 100%;
}

#user-access-modal .toolbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background-color: #e5e7eb;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    gap: 4px;
}

#user-access-modal .toolbar button:hover {
    background-color: #d1d5db;
}

#user-access-modal .toolbar button:disabled {
    background-color: #e5e7eb;
    cursor: not-allowed;
    opacity: 0.5;
}

#user-access-modal .toolbar button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#user-access-modal .toolbar .flex.items-center:first-child {
    gap: 10px;
    flex-grow: 0;
    flex-shrink: 1;
}

#user-access-modal .toolbar .flex.items-center:last-child {
    margin-left: auto;
    flex-grow: 0;
}

#user-access-modal .toolbar .flex.items-center:last-child button {
    margin-right: 0;
}

#user-access-modal .toolbar input[type="text"] {
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    flex-grow: 0;
    width: 200px;
    min-width: 150px;
}

#user-access-modal .toolbar select {
    padding: 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background-color: #ffffff;
    margin-right: 10px;
}

.users-table th,
.users-table td {
    padding: 8px;
    text-align: left;
    border-right: 1px solid #d1d5db;
}

.users-table th:last-child,
.users-table td:last-child {
    border-right: none;
}

.users-table th {
    background-color: #e5e7eb;
    font-weight: 600;
}

.users-table tbody tr:nth-child(even) {
    background-color: #f9fafb;
}

.users-table tbody tr:nth-child(odd) {
    background-color: #ffffff;
}

#toolbar {
    background-color: #f3f4f6;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.records-table tbody tr.row-even {
    background-color: #f3f4f6;
}

.records-table tbody tr.row-odd {
    background-color: #e5e7eb;
}

#sessions-modal table tbody tr:nth-child(even) {
    background-color: #f3f4f6;
}

#sessions-modal table tbody tr:nth-child(odd) {
    background-color: #e5e7eb;
}

#sessions-modal table th,
#sessions-modal table td {
    min-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#sessions-modal .modal-content {
    max-width: 700px;
}

.details-content table tbody tr:nth-child(even) {
    background-color: #ffffff;
}

.details-content table tbody tr:nth-child(odd) {
    background-color: #f3f4f6;
}

@media (max-width: 640px) {
    .records-table th,
    .records-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 4px 8px;
    }

    .records-table th {
        background-color: #e5e7eb;
        font-weight: 600;
    }

    .records-table td {
        border-bottom: 1px solid #d1d5db;
    }

    .records-table tr {
        display: block;
        margin-bottom: 8px;
    }

    .records-table tr.row-even {
        background-color: #f3f4f6;
    }

    .records-table tr.row-odd {
        background-color: #e5e7eb;
    }

    .records-table thead {
        display: none;
    }

    .records-table td:before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        width: 50%;
        padding-right: 8px;
    }

    .details-content {
        display: block !important;
    }

    .details-content > div {
        width: 100%;
        margin-bottom: 16px;
    }
}

#sessions-modal {
    z-index: 40;
}

#confirm-action-modal {
    z-index: 50;
}

#add-user-modal {
    z-index: 40;
}

/* Dark Mode for Records.html */
body.dark-mode {
    background-color: #2A3545; /* Slightly lighter base background */
    color: #E5E7EB; /* Lighter gray text for general readability */
}

body.dark-mode h1 {
    color: #F9FAFB; /* Off-white for headers */
}

body.dark-mode #page-header {
    background-color: rgba(55, 65, 81, 0.9); /* Darker header with transparency */
}

body.dark-mode #pilotInfoHeader,
body.dark-mode #logout-btn,
body.dark-mode #hamburger-btn svg {
    color: #F9FAFB;
}

body.dark-mode #hamburger-menu {
    background-color: #3B4657; /* Slightly lighter menu background */
}

body.dark-mode #hamburger-menu a {
    color: #E5E7EB;
    font-size: 19px;
}

body.dark-mode #hamburger-menu a:hover {
    background-color: #5B6778; /* Lighter hover state */
}

body.dark-mode #hamburger-menu span {
    color: #E5E7EB;
    font-size: 17px;
}

body.dark-mode #moon-icon {
    color: #E5E7EB;
}

body.dark-mode button {
    background-color: #4B5563;
    color: #E5E7EB;
}

body.dark-mode button:hover {
    background-color: #60A5FA; /* Light blue for hover */
}

body.dark-mode .bg-blue-500 {
    background-color: #3B82F6;
}

body.dark-mode .bg-blue-500:hover {
    background-color: #60A5FA;
}

body.dark-mode .bg-red-500 {
    background-color: #EF4444;
}

body.dark-mode .bg-red-500:hover {
    background-color: #F87171;
}

body.dark-mode .bg-gray-300 {
    background-color: #4B5563;
}

body.dark-mode .bg-gray-300:hover {
    background-color: #5B6778;
}

body.dark-mode #recordsContainer {
    color: #E5E7EB;
    background-color: #313C4D; /* Lighter container background */
    border-color: #5B6778;
}

body.dark-mode #recordsContainer h3 {
    color: #F9FAFB;
}

body.dark-mode #recordsContainer table {
    color: #E5E7EB;
}

body.dark-mode .subtext {
    color: #D1D5DB; /* Slightly darker gray for subtext */
}

body.dark-mode .text-gray-900,
body.dark-mode .text-gray-700,
body.dark-mode .text-gray-600,
body.dark-mode .text-gray-100 {
    color: #E5E7EB;
}

body.dark-mode .bg-white {
    background-color: #313C4D;
}

body.dark-mode .bg-gray-100 {
    background-color: #3B4657;
}

body.dark-mode .bg-gray-50 {
    background-color: #313C4D;
}

body.dark-mode .bg-gray-200 {
    background-color: #3B4657;
}

body.dark-mode .bg-gray-300 {
    background-color: #4B5563;
}

body.dark-mode .bg-gray-300:hover {
    background-color: #5B6778;
}

body.dark-mode .border-gray-200,
body.dark-mode .border-gray-300 {
    border-color: #5B6778;
}

body.dark-mode .records-table th {
    background-color: #4B5563;
    color: #F9FAFB;
    border-right-color: #5B6778;
}

body.dark-mode .records-table tbody tr.row-even {
    background-color: #3B4657; /* Lighter row background */
}

body.dark-mode .records-table tbody tr.row-odd {
    background-color: #313C4D; /* Slightly darker row background */
}

body.dark-mode .sortable:hover {
    background-color: #5B6778;
}

body.dark-mode .total-row {
    border-top-color: #5B6778;
}

body.dark-mode .breakdown-table th {
    background-color: #4B5563;
    color: #F9FAFB;
    border-right-color: #5B6778;
}

body.dark-mode .breakdown-table td {
    color: #E5E7EB;
    border-right-color: #5B6778;
}

body.dark-mode .breakdown-table tbody tr:nth-child(even) {
    background-color: #3B4657;
}

body.dark-mode .breakdown-table tbody tr:nth-child(odd) {
    background-color: #313C4D;
}

body.dark-mode #user-access-modal .modal-content {
    background-color: #3F4A5A;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Subtle shadow for elevation */
}

body.dark-mode .modal-content {
    background-color: #313C4D;
}

body.dark-mode .modal-content h3,
body.dark-mode .modal-content label {
    color: #F9FAFB;
}

body.dark-mode .modal-content input,
body.dark-mode .modal-content select,
body.dark-mode .modal-content textarea {
    background-color: #4B5563;
    color: #E5E7EB;
    border-color: #5B6778;
}

body.dark-mode .modal-content .message.text-green-500 {
    color: #34D399;
}

body.dark-mode .modal-content .message.text-red-500 {
    color: #F87171;
}

body.dark-mode .modal-content button {
    background-color: #4B5563;
    color: #E5E7EB;
}

body.dark-mode .modal-content button:hover {
    background-color: #60A5FA;
}

body.dark-mode .bg-gray-600.bg-opacity-50 {
    background-color: rgba(55, 65, 81, 0.8);
}

body.dark-mode #toolbar {
    background-color: #3B4657;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

body.dark-mode #toolbar button {
    background-color: #4B5563;
    color: #E5E7EB;
}

body.dark-mode #toolbar button:hover {
    background-color: #60A5FA;
}

body.dark-mode #toolbar select,
body.dark-mode #toolbar input[type="text"] {
    background-color: #4B5563;
    color: #E5E7EB;
    border-color: #5B6778;
}

body.dark-mode #toolbar .pagination-btn:disabled {
    background-color: #4B5563;
    opacity: 0.5;
}

body.dark-mode #toolbar #page-info,
body.dark-mode #toolbar #record-count {
    color: #E5E7EB;
}

body.dark-mode #user-access-modal .toolbar {
    background-color: #3B4657;
}

body.dark-mode #user-access-modal .toolbar button {
    background-color: #4B5563;
    color: #E5E7EB;
}

body.dark-mode #user-access-modal .toolbar button:hover {
    background-color: #60A5FA;
}

body.dark-mode #user-access-modal .toolbar button:disabled {
    background-color: #4B5563;
    opacity: 0.5;
}

body.dark-mode #user-access-modal .toolbar input[type="text"],
body.dark-mode #user-access-modal .toolbar select {
    background-color: #4B5563;
    color: #E5E7EB;
    border-color: #5B6778;
}

body.dark-mode .users-table th {
    background-color: #4B5563;
    color: #F9FAFB;
    border-right-color: #5B6778;
}

body.dark-mode .users-table td {
    color: #E5E7EB;
    border-right-color: #5B6778;
}

body.dark-mode .users-table tbody tr:nth-child(even) {
    background-color: #3B4657;
}

body.dark-mode .users-table tbody tr:nth-child(odd) {
    background-color: #313C4D;
}

body.dark-mode .expand-btn svg,
body.dark-mode .sessions-btn svg {
    color: #60A5FA; /* Light blue for better visibility */
}

body.dark-mode .status-toggle svg.text-red-500 {
    color: #F87171;
}

body.dark-mode .status-toggle svg.text-green-500 {
    color: #34D399;
}

body.dark-mode .sessions-btn svg.text-indigo-500 {
    color: #60A5FA;
}

body.dark-mode .terminate-session-btn {
    background-color: #EF4444;
    color: #E5E7EB;
}

body.dark-mode .terminate-session-btn:hover {
    background-color: #F87171;
}

body.dark-mode #sessions-modal table tbody tr:nth-child(even) {
    background-color: #3B4657;
}

body.dark-mode #sessions-modal table tbody tr:nth-child(odd) {
    background-color: #313C4D;
}

body.dark-mode .details-content table tbody tr:nth-child(even) {
    background-color: #3B4657;
}

body.dark-mode .details-content table tbody tr:nth-child(odd) {
    background-color: #313C4D;
}

body.dark-mode .records-table th {
    background-color: #4B5563;
}

body.dark-mode .records-table td {
    color: #E5E7EB;
    border-bottom-color: #5B6778;
}

body.dark-mode .records-table tr.row-even {
    background-color: #3B4657;
}

body.dark-mode .records-table tr.row-odd {
    background-color: #313C4D;
}