/* Provided CSS code here, with final sticky sidebar, NO SCROLLING, and smooth transition fix */
:root {
    /* --- Light Mode Colors --- */
    --bg-primary-light: #ffffff;
    --bg-secondary-light: #f5f5f5; /* Light mode main content background */
    --text-primary-light: #3a3a3a;
    --text-secondary-light: #888888;
    --active-bg-light: #00aaff; /* Blue accent */
    --active-text-light: #ffffff;
    --search-bg-light: #eeeeee;
    /* --- Dark Mode Colors --- */
    --bg-primary-dark: #252b3b;
    --bg-secondary-dark: #1e1e2d; /* For main content */
    --text-primary-dark: #ffffff;
    --text-secondary-dark: #bfc6d4;
    --active-bg-dark: #00aaff; /* Blue accent */
    --active-text-dark: #ffffff;
    --search-bg: var(--search-bg-dark);
    /* --- Accent Colors --- */
    --accent-purple: #726bff;
    --accent-blue: #00aaff;
    --accent-red: #ff4757;

    /* --- MOBILE REPLICATED COLORS (Based on Tailwind HTML) --- */
    --mobile-primary: #1173d4; /* Tailwind Primary (Now text-primary in mobile KPIs) */
    --mobile-bg-light: #f6f7f8; /* Tailwind background-light */
    --mobile-bg-dark: #101922; /* Tailwind background-dark */
    --mobile-text-light: #111418; /* Near-black text */
    --mobile-text-dark: #ffffff;
    --mobile-border-light: #dbe0e6;
    --mobile-border-dark: #1f2937; /* approx gray-800 */


    /* Initial/Default Colors (Dark Mode) */
    --bg-primary: var(--bg-primary-dark);
    --bg-secondary: var(--bg-secondary-dark);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --active-bg: var(--active-bg-dark);
    --active-text: var(--active-text-dark);
    --search-bg: var(--search-bg-dark);
    /* Layout Variables */
    --sidebar-width: 250px;
    --sidebar-width-collapsed: 70px;
}
/* --- LIGHT MODE Overrides --- */
body.light-mode {
    --bg-primary: var(--bg-primary-light);
    --bg-secondary: var(--bg-secondary-light);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --active-bg: var(--active-bg-light);
    --active-text: var(--active-text-light);
    --search-bg: var(--search-bg-light);
}

/* --- BASE STYLES --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* CRITICAL FIX: Ensures smooth transitions on layout changes (sidebar toggle, etc.) */
    transition: all 0.3s ease-in-out; 
}
body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-primary);
    background: var(--bg-secondary);
    transition: background-color 0.3s, color 0.3s;
    scroll-behavior: smooth;
    padding-bottom: 0; /* Base reset */
}
.app-container {
    display: flex;
}

/* FIXED: Profile Picture Styles (Enforced small size) */
.profile-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border: 1px solid #ccc;
    vertical-align: middle;
}

.profile-picture-lg {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid var(--accent-blue);
}


/* --- STAR RATING UI ENHANCEMENT --- */
/* -------------------------------------- */

/* Container Setup */
.star-rating {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    font-size: 1.5rem;
    gap: 4px;
}

.star-rating[data-readonly="true"] {
    pointer-events: none;
}

/* Hide original radio inputs */
.star-rating input {
    display: none;
}

/* Style the star labels (the icons) */
.star-rating .star-label {
    padding: 4px 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.star-rating .star-label i {
    transition: all 0.15s ease;
    color: #999; /* Gray outline by default */
}

/* Interactive Rating Container */
.star-rating-interactive {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 193, 7, 0.05);
}

.star-rating-interactive-mobile {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 193, 7, 0.05);
}

/* Desktop Star Rating - Hover Preview */
.star-rating:not([data-readonly="true"]) .star-label {
    cursor: pointer;
    opacity: 0.8;
}

.star-rating:not([data-readonly="true"]) .star-label:hover i,
.star-rating:not([data-readonly="true"]) .star-label:hover ~ .star-label i {
    color: #ffc107; /* Gold on hover preview */
    opacity: 1;
    transform: scale(1.1);
}

/* Fill stars when checked */
.star-rating .star-input:checked ~ .star-label i,
.star-rating .star-input:checked ~ .star-label ~ .star-label i {
    color: #ffc107 !important; /* Gold when selected */
    font-weight: 900;
}

/* Mobile Star Rating */
.star-rating-mobile {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.star-label-mobile {
    padding: 6px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.star-label-mobile i {
    color: #999; /* Gray outline by default */
    transition: all 0.15s ease;
}

.star-label-mobile:active i {
    color: #ffc107;
    transform: scale(1.15);
}

.star-input-mobile:checked ~ .star-label-mobile i {
    color: #ffc107 !important;
    font-weight: 900;
}

/* CRITICAL FIX: Ensures the already rated info box looks clean */
.star-rating + .alert-info {
    margin-top: 15px;
}

/* Rating Text Feedback */
#ratingText, #ratingTextMobile {
    display: block;
    transition: all 0.3s ease;
    font-style: italic;
}

#ratingFeedback, #ratingFeedbackMobile {
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: none;
}

#ratingFeedback.success, #ratingFeedbackMobile.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

#ratingFeedback.error, #ratingFeedbackMobile.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Button states */
#submitRatingBtn:disabled, #submitRatingBtnMobile:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

#submitRatingBtn:not(:disabled), #submitRatingBtnMobile:not(:disabled) {
    cursor: pointer;
    opacity: 1;
    transition: all 0.3s ease;
}

#submitRatingBtn:not(:disabled):hover, #submitRatingBtnMobile:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .star-rating {
        font-size: 1.75rem;
    }
    
    .star-label {
        padding: 6px 8px;
    }
    
    .star-rating-interactive,
    .star-rating-interactive-mobile {
        padding: 16px;
    }
}

/* -------------------------------------- */
/* --- SIDEBAR STYLES (STICKY FIX & NO SCROLL) --- */
/* -------------------------------------- */
.sidebar {
    position: fixed; 
    top: 0;
    left: 0;
    height: 100vh; 
    overflow-y: hidden; /* Prevents vertical scrolling for the entire sidebar */

    width: var(--sidebar-width);
    background: var(--bg-primary);
    padding: 15px 15px 20px 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    transition: width 0.3s ease-in-out, background-color 0.3s; 
    flex-shrink: 0;
    z-index: 1000; 
}

/* -------------------------------------- */
/* --- MAIN CONTENT STYLES (STICKY FIX) --- */
/* -------------------------------------- */
.main-content {
    /* Push the content over to the right to make space for the fixed sidebar */
    margin-left: var(--sidebar-width); 
    flex-grow: 1;
    padding: 30px;
    transition: margin-left 0.3s ease-in-out; 
}

/* Adjust main content when sidebar is collapsed */
.sidebar.collapsed + .main-content {
    margin-left: var(--sidebar-width-collapsed);
}

/* -------------------------------------- */
/* --- MOBILE UI OVERRIDES (Targeting max-width: 768px) --- */
/* -------------------------------------- */

/* CRITICAL: Overrides for the new dashboard_user mobile layout */
@media (max-width: 767.98px) {
    /* Set the dashboard background to light/dark mode mobile color */
    .dashboard-overview {
        padding: 0 !important;
        background-color: var(--bg-secondary) !important;
        box-shadow: none !important;
    }

    /* KPI Colors Override (Matching Screenshot) */
    .kpi-total { color: var(--accent-blue) !important; }
    .kpi-pending { color: #ffc107 !important; } /* Bootstrap Yellow/Warning */
    .kpi-resolved { color: #198754 !important; } /* Bootstrap Green/Success */
    .kpi-critical { color: #dc3545 !important; } /* Bootstrap Red/Danger */

    /* Recent Requests List Item styling to match the screenshot */
    .list-group-item {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.75rem 1rem;
        border-radius: 0.5rem !important;
        border: 1px solid var(--mobile-border-light) !important;
        margin-bottom: 0.5rem;
        background-color: var(--bg-primary) !important;
    }
    
    .list-group-item > div:first-child {
        display: flex;
        align-items: center;
    }
    
    .list-group-item small.text-muted {
        font-size: 0.75rem;
    }
    
    .list-group-item p.fw-bold {
        font-size: 1rem;
        margin-bottom: 0;
    }
    
    .list-group-item .material-symbols-rounded {
        font-size: 1.5rem;
    }
    
    .list-group {
        border-radius: 0 !important;
        --bs-list-group-border-radius: 0 !important;
        --bs-list-group-border-color: transparent !important;
    }
}

@media (max-width: 768px) {
    /* --- HAMBURGER MENU STYLES (Requested by User) --- */
    #menu__toggle {
        opacity: 0;
    }
    #menu__toggle:checked + .menu__btn > span {
        transform: rotate(45deg);
    }
    #menu__toggle:checked + .menu__btn > span::before {
        top: 0;
        transform: rotate(0deg);
    }
    #menu__toggle:checked + .menu__btn > span::after {
        top: 0;
        transform: rotate(90deg);
    }
    #menu__toggle:checked ~ .menu__box {
        left: 0 !important;
    }
    .menu__btn {
        position: fixed;
        top: 18px; /* Adjusted to be centered in mobile-header */
        left: 20px;
        width: 26px;
        height: 26px;
        cursor: pointer;
        z-index: 1011; 
    }
    .menu__btn > span, .menu__btn > span::before, .menu__btn > span::after {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        background-color: var(--text-primary-light); 
        transition-duration: .25s;
    }
    .menu__btn > span::before {
        content: '';
        top: -8px;
    }
    .menu__btn > span::after {
        content: '';
        top: 8px;
    }
    .menu__box {
        display: block;
        position: fixed;
        top: 0;
        left: -100%;
        width: 300px;
        max-width: 80%; /* Safety measure for smaller screens */
        height: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
        background-color: var(--bg-primary-light); 
        box-shadow: 2px 2px 6px rgba(0, 0, 0, .4);
        transition-duration: .25s;
        overflow-y: auto; /* Enable scrolling for long menus */
        z-index: 1010;
    }

    /* Custom styles for Menu Box Content */
    .menu__box-header {
        display: flex;
        align-items: center;
        padding: 15px 24px;
        background-color: var(--active-bg-light); 
        color: var(--active-text-light);
        position: sticky; 
        top: 0;
        z-index: 10;
    }
    .menu__box-header .college-logo {
        filter: brightness(0) invert(1); /* Ensure logo visibility */
    }

    .menu__item {
        display: flex;
        align-items: center;
        padding: 12px 24px;
        color: var(--text-primary-light);
        font-size: 16px; 
        font-weight: 500;
        text-decoration: none;
        transition-duration: .25s;
    }
    .menu__item .material-symbols-rounded {
        margin-right: 15px;
        font-size: 24px;
    }
    .menu__item-label {
        flex-grow: 1;
    }
    
    .menu__item.active {
        background-color: #CFD8DC; 
        font-weight: 600;
    }
    
    .menu__item:hover {
        background-color: #CFD8DC;
    }
    
    /* --- CRITICAL FIX: Mobile Header Padding based on role ID --- */
    /* Mobile Header padding for Admin/Tech (Needs space for fixed hamburger button) */
    #mobile-header-admin,
    #mobile-header-tech {
        /* 1rem (default p-3) + 44px (space for the hamburger button) = ~60px */
        padding-left: 60px !important; 
    }
    
    /* Mobile Header padding for User (Needs default p-3 padding only) */
    #mobile-header-user {
        padding-left: 1rem !important; /* Default p-3 */
    }
    /* --- END CRITICAL FIX --- */
    
    /* CRITICAL FIX: Hide the desktop sidebar completely on mobile */
    .sidebar {
        display: none !important;
    }
    
    /* Reset main content margin to ensure it takes up the full width */
    .main-content {
        margin-left: 0 !important;
        padding: 0 !important; /* Managed by new inner container padding */
        padding-bottom: 80px !important; /* Admin/Tech no longer have bottom bar */
        width: 100%;
        overflow-y: auto;
        min-height: 100vh;
        /* Ensure background is inherited from body/dark-mode/light-mode class */
    }
    
    /* Special padding-bottom for USER role which still has the bottom bar */
    .app-container:has(body .mobile-bottom-nav) .main-content {
        /* FIX: Increased padding from 72px to 80px to ensure the last button on profile/ticket pages 
           is fully visible above the fixed bottom navigation bar on all pages. */
        padding-bottom: 80px !important; 
    }
    
    /* Mobile Light/Dark mode backgrounds (Ensures default Light mode appearance) */
    /* FORCE LIGHT MODE COLORS FOR MOBILE */
    .main-content, 
    .mobile-bottom-nav,
    .mobile-header {
        background-color: var(--bg-secondary-light) !important;
        color: var(--text-primary-light) !important;
    }
    
    /* Override to ensure dark mode on desktop doesn't affect mobile header/nav */
    body.dark-mode .mobile-header,
    body.dark-mode .mobile-bottom-nav,
    body.dark-mode .main-content {
        background-color: var(--bg-secondary-light) !important;
        color: var(--text-primary-light) !important;
    }
    
    body.dark-mode .mobile-header {
        background-color: var(--bg-primary-light) !important;
        border-color: rgba(0, 0, 0, 0.1) !important;
    }
    
    /* The search bar inside dashboard_user.php uses bg-light, ensure it is white */
    .container-fluid .input-group-text,
    .container-fluid .form-control {
        background-color: #f8f9fa !important; /* Bootstrap bg-light */
        color: var(--text-primary-light) !important;
    }
    
    /* 2. Top Header (Dashboard Title, Toggle, Notifications) - Using template_base.php's .mobile-header */
    .mobile-header {
        /* CRITICAL: Make the header sticky to the top */
        position: sticky;
        top: 0;
        z-index: 10;
        
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        background-color: var(--bg-primary); /* Use primary for header background */
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    .mobile-header h4 {
        /* Matching the h4 in template_base.php */
        font-size: 1.25rem;
        font-weight: 600;
        margin: 0;
    }

    /* 6. Bottom Navigation Bar */
    .mobile-bottom-nav {
        /* CRITICAL: Ensure fixed position for stickiness */
        position: fixed; 
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 20;
        
        display: flex;
        justify-content: space-around;
        align-items: center;
        height: 4rem; /* h-16 */
        background-color: var(--bg-primary);
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    body.dark-mode .mobile-bottom-nav {
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        /* Adjusted gap to match tight vertical spacing in screenshot */
        gap: 0.1rem; 
        flex-grow: 1;
        text-decoration: none;
        color: var(--text-secondary-light); /* Inactive color always light mode grey */
        /* Adjusted font size for smaller label */
        font-size: 0.6rem; 
        font-weight: 500;
        transition: color 0.2s;
        padding: 0.5rem 0;
        height: 100%; /* Ensure full height for tap target */
    }

    .mobile-nav-item.active {
        color: var(--accent-blue);
    }
    
    /* Material Icon size adjusted to match screenshot (slightly larger than before) */
    .mobile-nav-item .material-symbols-rounded {
        font-size: 1.7rem; 
        font-variation-settings: 'wght' 400; /* Ensure non-bold default look */
    }
    
    /* Helper class to force fill on the active icon (FILL 1, WGT 600 for contrast) */
    .mobile-nav-item.active .material-symbols-rounded.fill {
        font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
    }
    
    /* 7. History View List Overrides (Hide table, display vertical content) */
    .history-desktop-table {
        display: none !important;
    }
    .history-mobile-list {
        display: block !important;
        padding: 1rem;
    }
    /* Ensure all anchor tags in mobile-list-item look like blocks */
    .history-mobile-list .mobile-list-item {
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-decoration: none;
        color: inherit;
        padding: 0.75rem 1rem;
        border-radius: 0.5rem;
        background-color: var(--bg-primary);
        border: 1px solid var(--mobile-border-light);
        margin-bottom: 0.5rem;
    }
    
    .history-mobile-list .mobile-list-item .mobile-list-item-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 0.5rem;
        background-color: var(--bg-secondary);
        flex-shrink: 0;
        width: 3rem;
        height: 3rem;
    }
}

/* CRITICAL FIX: Profile picture size adjustment for mobile modal */
@media (max-width: 576px) {
    .profile-pic-modal-responsive {
        /* Reduce size from 150px to 100px on small screens */
        width: 100px !important;
        height: 100px !important;
    }
}

/* --- COLLAPSED STATE FIXES --- */
.sidebar.collapsed {
    width: var(--sidebar-width-collapsed);
    padding: 10px 10px 20px 10px; 
}
.sidebar.collapsed .nav-label,.sidebar.collapsed .search-bar input,.sidebar.collapsed .sidebar-footer .nav-label {
    opacity: 0;
    visibility: hidden;
    width: 0;
}
/* 1. Header (Logo & Toggle) Fixes */
.sidebar.collapsed .sidebar-header {
    justify-content: flex-end;     
    margin-bottom: 5px;     
    padding-top: 5px;
}
.sidebar.collapsed .logo-area {
    width: 0;     
    overflow: hidden;
}
.sidebar.collapsed .toggle-btn {
    width: 100%;     
    height: 40px;     
    margin: 0; 
}
/* 2. Search Bar Fixes */
.sidebar.collapsed .search-bar {
    justify-content: center;
    padding: 0;
    width: 100%; 
    height: 40px;
    margin-bottom: 20px; 
}
.sidebar.collapsed .search-bar .material-symbols-rounded {
    margin-right: 0;
}
/* 3. Navigation Fixes */
.sidebar.collapsed .nav-item {
    padding: 10px 0;
    margin: 5px 0; 
}
.sidebar.collapsed .nav-item.active {
    padding: 10px 15px;     
    display: flex;     
    justify-content: center;
}
/* 4. Footer Fixes */
.sidebar.collapsed .theme-toggle-container {
    display: flex; /* Ensure it stays visible */
    justify-content: center;
    padding: 10px 12px;
    width: 100%; 
    height: 40px; 
}
.sidebar.collapsed .theme-toggle-container .toggle-icon {
    margin-right: 0; 
}
.sidebar.collapsed .theme-toggle-container .switch {
    opacity: 0;
}
/* ----------------------------------- * EXPANDED STATE STYLES  * ----------------------------------- */
.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    height: 40px;
    position: relative;
}
.logo-area {
    display: flex;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
}
/* --- Custom Logo Styles --- */
.college-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;     
    background-color: transparent;     
    transition: all 0.3s ease-in-out;
    flex-shrink: 0; 
}
.toggle-btn {
    background: var(--search-bg);     
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;     
    height: 40px;     
    border-radius: 8px;     
    display: grid;     
    place-items: center;     
    transition: transform 0.3s, background-color 0.3s, color 0.3s;
    flex-shrink: 0;     
    z-index: 10;
}
/* --- SEARCH BAR --- */
.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--search-bg);
    border-radius: 8px;
    padding: 0 10px;
    height: 70px;
    margin-bottom: 20px;
    transition: background-color 0.3s, padding 0.3s, width 0.3s;
    overflow: hidden;
}
.search-bar .material-symbols-rounded {
    color: var(--text-secondary);
    margin-right: 10px;
    transition: margin 0.3s;
}
.search-bar input {
    border: none;
    background: none;
    outline: none;
    color: var(--text-primary);
    width: 100%;
    font-size: 14px;
}
/* --- NAVIGATION --- */
.sidebar-nav {
    flex-grow: 1;
    overflow-y: auto; /* FIXED: Enables vertical scrolling for navigation links */
}
.nav-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin: 8px 0;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 8px;
    /* Transition inherited from * for smooth hover/active state */
    white-space: nowrap;
    overflow: hidden;
}
.nav-item:hover {
    background-color: var(--search-bg);
    color: var(--text-primary);
}
.nav-item.active {
    background-color: var(--active-bg);
    color: var(--active-text);
    box-shadow: 0 4px 8px rgba(0, 170, 255, 0.3); 
}
.nav-item.active .material-symbols-rounded {
    fill: 1;
}
.nav-item .material-symbols-rounded {
    margin-right: 10px;
    font-size: 24px;
    transition: margin 0.3s;
}
.nav-label {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    transition: opacity 0.3s, width 0.3s;
}
/* --- BADGES --- */
.badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 12px;
    margin-left: auto;
    line-height: 1;
}
.new-badge {
    background-color: var(--accent-blue);
    color: #fff;
    animation: pulse-new 1s infinite alternate;
}
.notification-badge {
    background-color: var(--accent-red);
    color: #fff;
}
/* Rule to hide badges when they have no content/updates */
.hidden {
    display: none !important;
}
/* --- FOOTER & THEME TOGGLE --- */
.sidebar-footer {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 15px;
    flex-shrink: 0; /* Prevents footer from being squeezed by scrolling content */
}
.theme-toggle-container {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 8px;
    background-color: var(--search-bg);
    transition: background-color 0.3s;
    height: 45px;
    position: relative;
    overflow: hidden;
}
.theme-toggle-container .toggle-icon {
    color: var(--text-secondary);
    font-size: 24px;
    margin-right: 10px;
}
.theme-toggle-container .nav-label {
    flex-grow: 1;
    font-weight: 400;
}
/* --- SWITCH STYLES --- */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-left: auto;
    flex-shrink: 0;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
}
.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.4s;
}
input:checked + .slider {
    background-color: var(--accent-blue);
}
input:checked + .slider:before {
    transform: translateX(20px);
}
.slider.round {
    border-radius: 34px;
}
.slider.round:before {
    border-radius: 50%;
}
.dashboard-overview {
    background-color: var(--bg-primary);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.dashboard-overview h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.dashboard-overview p {
    color: var(--text-secondary);
}

/* NEW: KPI Card height constraint for rectangular shape */
.kpi-card-body .row {
    min-height: 40px; /* Ensure a minimum height for the contents */
}
.kpi-card-body .h5 {
    margin-bottom: 0 !important; /* Remove bottom margin from number to compress height */
    padding-bottom: 0;
}
.card-body.kpi-card-body {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

/* --- ANIMATION KEYFRAMES --- */
@keyframes pulse-new {
    from {
        opacity: 0.6;
        transform: scale(0.95);
    }
    to {
        transform: scale(1);
    }
}
/* Rule to hide badges when they have no content/updates */
.hidden {
    display: none !important;
}

/* NEW: Fix for modal footer positioning */
#serviceReportDisplayModal .modal-footer {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    z-index: 1;
    padding: 1rem;
    border-top: 1px solid #dee2e6;
}
#serviceReportDisplayModal .modal-footer .d-flex {
    width: 100%;
}
#serviceReportDisplayModal #admin-actions-footer {
    margin-left: auto;
}