/* Bootstrap 5 WHP Theme */
/* Clean theme implementation using Bootstrap 5 native classes and variables */

/* Custom CSS Variables for WHP Theme */
:root {
    /* Default Dark Theme */
    --whp-navbar-bg: #323b44;
    --whp-navbar-brand-color: #ffffff;
    --whp-sidebar-bg: #f8f9fa;
    --whp-sidebar-text: #495057;
    --whp-sidebar-active: #0d6efd;
    --whp-content-bg: #2d353d;
    --whp-content-text: #ffffff;
    --whp-card-bg: #3a4349;
    --whp-card-border: #495057;
    --whp-card-header-bg: #495057;
    --whp-card-header-border: #6c757d;
    --whp-form-bg: #495057;
    --whp-form-border: #6c757d;
    --whp-form-placeholder: #adb5bd;
    --whp-modal-bg: #3a4349;
    --whp-modal-border: #495057;
    --whp-table-border: #495057;
    --whp-table-stripe: rgba(255, 255, 255, 0.05);
    --whp-scrollbar-track: #495057;
    --whp-scrollbar-thumb: #6c757d;
    --whp-scrollbar-thumb-hover: #adb5bd;
    --whp-text-muted: #c5c9d0;
    --whp-breadcrumb-separator: #6c757d;
    --whp-dropdown-bg: #ffffff;
    --whp-dropdown-text: #212529;
    --whp-dropdown-hover-bg: #e9ecef;

    /* Alert colors - Dark theme */
    --whp-alert-success-bg: #0f5132;
    --whp-alert-success-text: #75b798;
    --whp-alert-danger-bg: #58151c;
    --whp-alert-danger-text: #ea868f;
    --whp-alert-warning-bg: #664d03;
    --whp-alert-warning-text: #ffda6a;
    --whp-alert-info-bg: #055160;
    --whp-alert-info-text: #6edff6;

    /* Font size variables */
    --whp-base-font-size: 1rem;
    --whp-base-font-size-lg: 1.25rem;
}

/* Light Theme Override */
[data-theme="light"] {
    --whp-navbar-bg: #f8f9fa;
    --whp-navbar-brand-color: #212529;
    --whp-sidebar-bg: #f8f9fa;
    --whp-sidebar-text: #495057;
    --whp-sidebar-active: #0d6efd;
    --whp-content-bg: #e9ecef;
    --whp-content-text: #212529;
    --whp-card-bg: #f8f9fa;
    --whp-card-border: #dee2e6;
    --whp-card-header-bg: #e9ecef;
    --whp-card-header-border: #dee2e6;
    --whp-form-bg: #ffffff;
    --whp-form-border: #ced4da;
    --whp-form-placeholder: #6c757d;
    --whp-modal-bg: #f8f9fa;
    --whp-modal-border: #dee2e6;
    --whp-table-border: #dee2e6;
    --whp-table-stripe: rgba(0, 0, 0, 0.05);
    --whp-scrollbar-track: #f8f9fa;
    --whp-scrollbar-thumb: #ced4da;
    --whp-scrollbar-thumb-hover: #adb5bd;
    --whp-text-muted: #495057;
    --whp-breadcrumb-separator: #6c757d;
    --whp-dropdown-bg: #f8f9fa;
    --whp-dropdown-text: #212529;
    --whp-dropdown-hover-bg: #e9ecef;

    /* Alert colors - Light theme */
    --whp-alert-success-bg: #d1e7dd;
    --whp-alert-success-text: #0f5132;
    --whp-alert-danger-bg: #f8d7da;
    --whp-alert-danger-text: #842029;
    --whp-alert-warning-bg: #fff3cd;
    --whp-alert-warning-text: #664d03;
    --whp-alert-info-bg: #cff4fc;
    --whp-alert-info-text: #055160;
}

/* Light theme navbar adjustments */
[data-theme="light"] .navbar.bg-dark {
    background-color: var(--whp-navbar-bg) !important;
    border-bottom: 1px solid #dee2e6;
}

/* Light theme navbar text and icons */
[data-theme="light"] .navbar .navbar-text {
    color: #212529 !important;
}

[data-theme="light"] .navbar .btn-outline-light {
    color: #212529 !important;
    border-color: #6c757d !important;
}

[data-theme="light"] .navbar .btn-outline-light:hover {
    background-color: #e9ecef !important;
    border-color: #495057 !important;
    color: #212529 !important;
}

[data-theme="light"] .navbar .nav-link {
    color: #212529 !important;
}

[data-theme="light"] .navbar .nav-link:hover {
    color: #0d6efd !important;
}

/* Light theme navbar toggler (menu button) */
[data-theme="light"] .navbar-toggler {
    border-color: #6c757d !important;
}

[data-theme="light"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(33, 37, 41, 0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Light theme theme toggle button */
[data-theme="light"] #themeToggleBtn {
    color: #212529 !important;
    border-color: #6c757d !important;
    background-color: transparent !important;
}

[data-theme="light"] #themeToggleBtn:hover {
    background-color: #e9ecef !important;
    border-color: #495057 !important;
}

/* Light theme font size toggle */
[data-theme="light"] .font-size-toggle-label {
    color: #212529 !important;
}

[data-theme="light"] .font-size-icons {
    color: #495057 !important;
}

[data-theme="light"] .toggle-slider {
    background-color: #ced4da !important;
    border-color: #6c757d !important;
}

[data-theme="light"] .toggle-switch:hover .toggle-slider {
    background-color: #adb5bd !important;
}

[data-theme="light"] .toggle-switch input:checked + .toggle-slider {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
}

/* Light theme text improvements - make text darker and more readable */
[data-theme="light"] .text-muted {
    color: #495057 !important;
}

[data-theme="light"] .card .text-muted,
[data-theme="light"] .panel .text-muted,
[data-theme="light"] .modal .text-muted {
    color: #495057 !important;
}

[data-theme="light"] .card-body .text-muted {
    color: #495057 !important;
}

[data-theme="light"] .page-title .text-muted {
    color: #495057 !important;
}

[data-theme="light"] .form-text.text-muted,
[data-theme="light"] small.text-muted,
[data-theme="light"] .text-muted small {
    color: #495057 !important;
}

/* Light theme - fix .text-light class to be dark in light mode */
[data-theme="light"] .text-light,
[data-theme="light"] .form-text.text-light,
[data-theme="light"] .modal .text-light,
[data-theme="light"] .card .text-light {
    color: #495057 !important;
}

/* Light theme - fix table headers with .table-dark class */
[data-theme="light"] .table-dark,
[data-theme="light"] .table thead.table-dark,
[data-theme="light"] thead.table-dark th {
    --bs-table-bg: #e9ecef !important;
    --bs-table-color: #212529 !important;
    background-color: #e9ecef !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
}

/* Light theme - fix site section headers (Container Status, etc.) */
[data-theme="light"] .site-section-header {
    background: #e9ecef !important;
    color: #212529 !important;
    border: 1px solid #dee2e6 !important;
}

/* Light theme - make all text in cards and content areas darker */
[data-theme="light"] .card-body {
    color: #212529 !important;
}

[data-theme="light"] .card-header {
    color: #212529 !important;
}

[data-theme="light"] .card-title {
    color: #212529 !important;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: #212529 !important;
}

/* Light theme - ensure strong/bold text is very dark */
[data-theme="light"] .fw-bold,
[data-theme="light"] strong,
[data-theme="light"] b {
    color: #000000 !important;
}

/* Light theme - info boxes and stat displays */
[data-theme="light"] .card-body .fw-bold {
    color: #000000 !important;
}

[data-theme="light"] .card-body p {
    color: #212529 !important;
}

[data-theme="light"] .card-body span {
    color: #212529 !important;
}

[data-theme="light"] .card-body div {
    color: #212529 !important;
}

/* Light theme - Login page styling */
[data-theme="light"] .account {
    background: #e9ecef !important;
}

[data-theme="light"] .account-col h1 {
    color: #212529 !important;
    text-shadow: 1px 1px rgba(0,0,0,0.05) !important;
}

[data-theme="light"] .account-col h3 {
    color: #495057 !important;
}

[data-theme="light"] .account-col p {
    color: #495057 !important;
}

[data-theme="light"] .account .alert {
    color: inherit !important;
}

/* Light theme - Login form styling */
[data-theme="light"] .account .form-control {
    background-color: #ffffff !important;
    border-color: #ced4da !important;
    color: #212529 !important;
}

[data-theme="light"] .account .form-control:focus {
    background-color: #ffffff !important;
    border-color: #0d6efd !important;
    color: #212529 !important;
}

[data-theme="light"] .account .form-label {
    color: #212529 !important;
}

/* Light theme - Login button on dark navbar gets proper styling */
[data-theme="light"] .login-font-toggle {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .login-font-toggle .font-size-toggle-label {
    color: #212529 !important;
}

[data-theme="light"] .login-font-toggle .font-size-icons {
    color: #495057 !important;
}

/* Light theme - Fix bg-dark elements (info boxes, etc.) */
[data-theme="light"] .bg-dark {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
}

[data-theme="light"] .bg-dark .text-muted,
[data-theme="light"] .bg-dark small {
    color: #495057 !important;
}

[data-theme="light"] .bg-dark i {
    color: #495057 !important;
}

/* Body and Base Styling */
body {
    background-color: var(--whp-content-bg);
    color: var(--whp-content-text);
    font-family: 'Open Sans', sans-serif;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Global text-muted override for dark theme */
.text-muted {
    color: #c5c9d0 !important;
}

/* Specific context overrides for better contrast */
.account .text-muted,
.login .text-muted,
body.account .text-muted {
    color: #b8bcc4 !important;
}

/* Password strength and form helper text */
.form-text.text-muted,
small.text-muted,
.text-muted small {
    color: #c5c9d0 !important;
}

/* Ensure good contrast in cards and panels */
.card .text-muted,
.panel .text-muted,
.modal .text-muted {
    color: #d1d5db !important;
}

/* Dashboard and page specific overrides */
.page-title .text-muted {
    color: #adb5bd !important;
}

/* Navbar Customization */
.navbar.bg-dark {
    background-color: var(--whp-navbar-bg) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: background-color 0.3s ease;
}

.navbar-brand {
    color: var(--whp-navbar-brand-color) !important;
    font-weight: 600;
    font-size: 1.5rem;
}

.navbar-brand:hover {
    color: var(--whp-navbar-brand-color) !important;
}

/* Offcanvas Sidebar Styling */
.offcanvas.bg-light {
    background-color: var(--whp-sidebar-bg) !important;
    border-right: 1px solid #dee2e6;
}

.offcanvas-header {
    background-color: #e9ecef;
    border-bottom: 1px solid #dee2e6;
}

.offcanvas-title {
    color: var(--whp-sidebar-text);
    font-weight: 600;
}

/* List Group Navigation Styling */
.list-group-item {
    border: none !important;
    color: var(--whp-sidebar-text);
    background-color: transparent !important;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #e9ecef !important;
    color: var(--whp-sidebar-active) !important;
}

.list-group-item.active {
    background-color: var(--whp-sidebar-active) !important;
    color: white !important;
    border-color: var(--whp-sidebar-active) !important;
}

.list-group-item i {
    width: 20px;
    text-align: center;
}

/* User Dropdown Styling */
.dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0,0,0,.15);
    background-color: var(--whp-dropdown-bg);
}

.dropdown-item {
    color: var(--whp-dropdown-text);
    transition: all 0.3s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--whp-dropdown-hover-bg);
    color: var(--whp-dropdown-text);
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Button Styling */
.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.75);
}

/* Button Size Classes for Bootstrap 5 Compatibility */
.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* Enhanced Button Styling */
.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-success {
    background-color: #198754;
    border-color: #198754;
    color: #fff;
}

.btn-success:hover {
    background-color: #157347;
    border-color: #146c43;
}

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #fff;
}

.btn-warning:hover {
    background-color: #ffca2c;
    border-color: #ffc720;
}

.btn-info {
    background-color: #0dcaf0;
    border-color: #0dcaf0;
    color: #fff;
}

.btn-info:hover {
    background-color: #31d2f2;
    border-color: #25cff2;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #5c636a;
    border-color: #565e64;
}

/* Main Content Area */
#wrapper {
    background-color: var(--whp-content-bg);
    min-height: calc(100vh - 80px);
}

.page-title h1 {
    color: var(--whp-content-text);
    margin-bottom: 1.5rem;
}

.page-title p.text-muted {
    color: #adb5bd !important;
    font-size: 1rem;
}

.page-title small {
    color: #adb5bd;
}

/* Breadcrumb Styling */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #6c757d;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--whp-sidebar-active);
}

.breadcrumb-item.active {
    color: var(--whp-content-text);
}

/* Enhanced breadcrumb container */
.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #6c757d;
    padding: 0 0.5rem;
}

/* Better spacing for breadcrumb navigation */
nav[aria-label="breadcrumb"] .bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6 !important;
}

/* Home icon spacing in breadcrumb */
.breadcrumb-item i.fa-home {
    margin-right: 0;
}

/* Card Styling for Content */
.card {
    background-color: var(--whp-card-bg);
    border: 1px solid var(--whp-card-border);
    color: var(--whp-content-text);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.card-header {
    background-color: var(--whp-card-header-bg);
    border-bottom: 1px solid var(--whp-card-header-border);
    color: var(--whp-content-text);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.card-body {
    color: var(--whp-content-text);
    transition: color 0.3s ease;
}

/* Enhanced readability for dashboard cards */
.card-body .text-muted {
    color: #d1d5db !important;
}

.card-body .fw-bold {
    color: #f8f9fa !important;
}

/* Better text contrast for card content */
.card-body .border-bottom {
    border-color: #6c757d !important;
}



/* Form Styling */
.form-control {
    background-color: var(--whp-form-bg);
    border: 1px solid var(--whp-form-border);
    color: var(--whp-content-text);
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    background-color: var(--whp-form-bg);
    border-color: var(--whp-sidebar-active);
    color: var(--whp-content-text);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-control::placeholder {
    color: var(--whp-form-placeholder);
}

.form-label {
    color: var(--whp-content-text);
}

/* Bootstrap 5 Form Group Compatibility */
.form-group {
    margin-bottom: 1rem;
}

/* Modal Styling */
.modal-content {
    background-color: var(--whp-modal-bg);
    color: var(--whp-content-text);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.modal-header {
    border-bottom: 1px solid var(--whp-modal-border);
}

.modal-footer {
    border-top: 1px solid var(--whp-modal-border);
}

/* Alert Styling */
.alert {
    border: none;
}

.alert-success {
    background-color: var(--whp-alert-success-bg);
    color: var(--whp-alert-success-text);
}

.alert-danger {
    background-color: var(--whp-alert-danger-bg);
    color: var(--whp-alert-danger-text);
}

.alert-warning {
    background-color: var(--whp-alert-warning-bg);
    color: var(--whp-alert-warning-text);
}

.alert-info {
    background-color: var(--whp-alert-info-bg);
    color: var(--whp-alert-info-text);
}

/* Table Styling */
.table {
    color: var(--whp-content-text);
    border-color: var(--whp-table-border);
}

.table > :not(caption) > * > * {
    padding: 0.75rem;
    background-color: var(--bs-table-bg);
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg);
}

.table-striped > tbody > tr:nth-of-type(odd) > td,
.table-striped > tbody > tr:nth-of-type(odd) > th {
    background-color: var(--whp-table-stripe);
}

.table thead th {
    border-bottom: 2px solid var(--whp-table-border);
}

.table td {
    border-color: var(--whp-table-border);
    vertical-align: middle;
}

.table-dark {
    --bs-table-bg: var(--whp-card-bg);
    --bs-table-striped-bg: var(--whp-card-header-bg);
    --bs-table-hover-bg: var(--whp-card-header-bg);
    --bs-table-border-color: var(--whp-table-border);
}



/* Responsive Design */
@media (max-width: 768px) {
    #wrapper {
        margin-top: 70px;
        padding: 15px;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Splash Screen */
.splash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease-out;
}

.splash.fade-out {
    opacity: 0;
}

.splash-title {
    text-align: center;
    color: #6c757d;
}

/* Utility Classes */
.text-whp-primary {
    color: var(--whp-sidebar-active) !important;
}

.bg-whp-dark {
    background-color: var(--whp-content-bg) !important;
}

.bg-whp-light {
    background-color: var(--whp-sidebar-bg) !important;
}

/* Scrollbar Styling for Webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--whp-scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--whp-scrollbar-thumb);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--whp-scrollbar-thumb-hover);
} 

/* Utility Classes for Readable Text on Any Background */
.text-dark {
    color: #212529 !important;
}
.text-light {
    color: #f8f9fa !important;
}

/* Fix headings and labels to inherit color by default */
h1, h2, h3, h4, h5, h6, .form-label {
    color: inherit;
}

/* Muted text: better contrast for both dark and light backgrounds */
.text-muted {
    color: #adb5bd !important;
}
.bg-light .text-muted, .card.bg-light .text-muted, .modal-content.bg-light .text-muted {
    color: #6c757d !important;
}

/* Card, Panel, Widget: enforce correct text color for background */
.card, .panel, .modal-content, .widget-box {
    color: var(--whp-content-text);
}
.card.bg-light, .panel.bg-light, .modal-content.bg-light, .widget-box.bg-light {
    color: #212529;
}

/* Headings inside cards/panels/widgets: inherit color */
.card h1, .card h2, .card h3, .card h4, .card h5, .card h6,
.panel h1, .panel h2, .panel h3, .panel h4, .panel h5, .panel h6,
.widget-box h1, .widget-box h2, .widget-box h3, .widget-box h4, .widget-box h5, .widget-box h6 {
    color: inherit;
}

/* Large Font Size Classes */
body.large-fonts {
    font-size: 1.25rem !important;
}

body.large-fonts .btn {
    font-size: 1.125rem !important;
    padding: 0.5rem 1rem !important;
}

body.large-fonts .form-control,
body.large-fonts .form-select {
    font-size: 1.125rem !important;
    padding: 0.5rem 0.75rem !important;
}

body.large-fonts .form-control::placeholder {
    font-size: 1.125rem !important;
}

body.large-fonts .navbar {
    font-size: 1.125rem !important;
}

body.large-fonts .navbar-brand {
    font-size: 1.5rem !important;
}

body.large-fonts .list-group-item {
    font-size: 1.125rem !important;
    padding: 1rem 1.25rem !important;
}

body.large-fonts .dropdown-item {
    font-size: 1.125rem !important;
    padding: 0.5rem 1rem !important;
}

body.large-fonts h1 {
    font-size: 3rem !important;
}

body.large-fonts h2 {
    font-size: 2.5rem !important;
}

body.large-fonts h3 {
    font-size: 2rem !important;
}

body.large-fonts h4 {
    font-size: 1.75rem !important;
}

body.large-fonts h5 {
    font-size: 1.5rem !important;
}

body.large-fonts h6 {
    font-size: 1.25rem !important;
}

body.large-fonts .small,
body.large-fonts small {
    font-size: 1rem !important;
}

body.large-fonts .table {
    font-size: 1.125rem !important;
}

body.large-fonts .breadcrumb {
    font-size: 1.125rem !important;
}

body.large-fonts .modal-body,
body.large-fonts .modal-title {
    font-size: 1.125rem !important;
}

body.large-fonts .card-body {
    font-size: 1.125rem !important;
}

body.large-fonts label {
    font-size: 1.125rem !important;
}

body.large-fonts .form-text {
    font-size: 1rem !important;
}

/* Font size toggle switch styling */
.font-size-toggle-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: 1rem;
}

.font-size-toggle-label {
    color: #ffffff;
    font-size: 0.875rem;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Toggle switch styles */
.toggle-switch {
    position: relative;
    width: 50px;
    height: 26px;
    display: inline-block;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.toggle-switch input:focus + .toggle-slider {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

/* Hover effects */
.toggle-switch:hover .toggle-slider {
    background-color: rgba(255, 255, 255, 0.4);
}

.toggle-switch input:checked:hover + .toggle-slider {
    background-color: #0b5ed7;
}

/* Font size icons */
.font-size-icons {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: rgba(255, 255, 255, 0.9);
}

.font-size-small {
    font-size: 0.75rem;
}

.font-size-large {
    font-size: 1.25rem;
    font-weight: bold;
}

/* For login page font toggle */
.login-font-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-font-toggle .font-size-toggle-label {
    color: #333;
}

.login-font-toggle .toggle-slider {
    background-color: #ccc;
    border-color: #999;
}

.login-font-toggle .toggle-switch:hover .toggle-slider {
    background-color: #b0b0b0;
}

.login-font-toggle .font-size-icons {
    color: #555;
} 