/* =========================================
   1. GLOBAL VARIABLES & RESET
   ========================================= */
:root {
    --primary-orange: #feb139;
    --primary-hover: #e59b2e;
    --text-dark: #2c3e50;
    --text-grey: #6c757d;
    --bg-body: #f4f7f6;
    --white: #ffffff;
    --border: #e9ecef;
    --sidebar-width: 230px;
    --radius: 8px;
    --header-height: 70px;
    --danger-red: #e74c3c;
    --danger-bg: #fdecea;
    --success-green: #2ecc71;
    --success-bg: #e8f5e9;
    --warning-yellow: #f1c40f;
    --warning-bg: #fffde7;
}

body {
    font-family: 'Segoe UI', 'Roboto', Helvetica, Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
}

h1,
h2,
h3 {
    margin-top: 0;
    font-weight: 600;
}

/* FIX UNTUK MATERIAL ICONS */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    display: inline-block;
    line-height: 1;
    text-transform: none;
    letter-spacing: normal;
    word-wrap: normal;
    white-space: nowrap;
    direction: ltr;
    vertical-align: middle;
}

/* UTILITY CLASSES */
.hidden {
    display: none !important;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: var(--text-dark);
    padding: 12px 24px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    width: 100%;
    display: block;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-primary:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

/* =========================================
   2. LOGIN PAGE STYLES
   ========================================= */
.login-layout {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-body);
}

.login-card {
    background: var(--white);
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    border-radius: var(--radius);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 5px solid var(--primary-orange);
}

.login-card .brand-logo {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-grey);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dark);
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--white);
    transition: border 0.2s;
}

.input-group input:focus {
    border-color: var(--primary-orange);
}

.error-text {
    background-color: var(--danger-bg);
    color: var(--danger-red);
    border: 1px solid #feb2b2;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin-top: 15px;
    display: none;
}

.footer-copy {
    margin-top: 2rem;
    font-size: 0.75rem;
    color: var(--text-grey);
}

/* =========================================
   3. MAIN APP LAYOUT (Sidebar + Content)
   ========================================= */
.app-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: var(--white);
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

/* Desktop: Sidebar Collapsed (Hidden) */
.sidebar.collapsed {
    transform: translateX(-100%);
    box-shadow: none;
}

/* MODERN FLOATING GLASS SIDEBAR STYLES */
.sidebar {
    width: var(--sidebar-width);
    height: calc(100vh - 24px);
    /* Floating gap top/bottom */
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;

    /* Glassmorphism Background */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Floating Shape */
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);

    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

/* Sidebar Collapsed (Hidden) */
.sidebar.collapsed {
    transform: translateX(calc(-100% - 20px));
    box-shadow: none;
    pointer-events: none;
}

.sidebar-header {
    height: 68px;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    /* Optional: subtle separator */
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.brand-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

/* Sidebar Logo */
.sidebar-logo-img {
    max-height: 36px;
    max-width: 130px;
    width: auto;
    object-fit: contain;
    /* No filter - keep original orange color */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.sidebar-logo {
    max-height: 45px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
}

/* SEARCH BAR */
.sidebar-search-container {
    padding: 8px 12px;
}

.search-wrapper {
    position: relative;
}

.search-wrapper input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(0, 0, 0, 0.03);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.search-wrapper input:focus {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-wrapper .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 18px;
}

/* NAVIGATION LINKS */
.nav-links {
    list-style: none;
    padding: 6px 10px;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* Section Title */
.nav-section-title {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: #9aa0a6;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 14px 14px 4px 14px;
    margin: 0;
}

.nav-item {
    padding: 8px 12px;
    margin-bottom: 2px;
    font-size: 0.88rem;
    cursor: pointer;
    color: #5f6368;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease-in-out;
    border-radius: 10px;
    /* Pill Shape */
    position: relative;
    user-select: none;
}

/* HOVER STATE */
.nav-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: #202124;
    transform: translateX(3px);
    /* Micro-interaction slide */
}

/* ACTIVE STATE (PILL) */
.nav-item.active {
    background: linear-gradient(135deg, var(--primary-orange), #ff9f43);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(254, 177, 57, 0.3);
    font-weight: 600;
}

/* Make icons white when active */
.nav-item.active .material-icons {
    color: var(--white);
}

/* SUBMENU & ARROW */
.dropdown-icon {
    margin-left: auto;
    font-size: 16px;
    transition: transform 0.3s;
    color: #9aa0a6;
}

.nav-item.open .dropdown-icon {
    transform: rotate(180deg);
}

.nav-item.active .dropdown-icon {
    color: rgba(255, 255, 255, 0.8);
}

/* SUBMENU CONTAINER */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0 0 4px 0;
    display: none;
    background: rgba(0, 0, 0, 0.02);
    /* Slight contrast background block */
    border-radius: 10px;
    overflow: hidden;
}

.submenu.open {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sub-item {
    padding: 6px 10px 6px 36px;
    /* Indent sub items aligned with icon text */
    font-size: 0.84rem;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    border-left: 2px solid transparent;
}

.sub-item:hover {
    color: var(--primary-orange);
    background: rgba(0, 0, 0, 0.02);
}

.sub-item.active {
    color: var(--primary-orange);
    font-weight: 600;
    background: rgba(254, 177, 57, 0.08);
    /* Light tint background */
    border-left: 2px solid var(--primary-orange);
}

/* End of Sidebar Styles */

/* Submenu Styling */
.submenu {
    background-color: transparent !important;
    /* Remove grey bg */
    padding-left: 8px;
}

.sub-item {
    padding: 6px 10px 6px 36px;
    /* Indent */
    margin: 1px 8px;
    border-radius: 8px;
    font-size: 0.84rem;
    color: #5f6368;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.sub-item:hover {
    color: var(--primary-orange);
    background: rgba(254, 177, 57, 0.05);
    transform: translateX(3px);
}

.sub-item.active {
    color: var(--primary-orange);
    font-weight: 700;
    background: rgba(254, 177, 57, 0.1);
}

/* SIDEBAR SEARCH STYLES */
.sidebar-search-container {
    padding: 12px 12px 8px 12px;
}

.search-wrapper {
    position: relative;
    width: 100%;
}

#sidebarSearchInput {
    width: 100%;
    padding: 9px 32px 9px 12px;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    background: #f8f9fa;
    font-size: 0.85rem;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

#sidebarSearchInput:focus {
    background: var(--white);
    border-color: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(254, 177, 57, 0.15);
}

.sidebar-search-container .search-wrapper .search-icon {
    position: absolute;
    right: 15px;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 20px;
    pointer-events: none;
    transition: color 0.3s;
}

#sidebarSearchInput:focus+.search-icon {
    color: var(--primary-orange);
}

.sidebar-footer {
    padding: 0.75rem;
    border-top: 1px solid var(--border);
    background-color: var(--white);
    flex-shrink: 0;
}

.logout-item {
    padding: 9px 14px;
    cursor: pointer;
    color: var(--danger-red);
    font-weight: 600;
    display: flex;
    font-size: 0.9rem;
    border-radius: 8px;
    align-items: center;
    gap: 15px;
    border-radius: var(--radius);
    transition: all 0.2s;
    width: 100%;
    background: transparent;
}

.logout-item:hover {
    background-color: var(--danger-bg);
}

.version-text {
    font-size: 0.65rem;
    margin-top: 6px;
    color: #ccc;
    text-align: center;
    margin-top: 10px;
}

/* MAIN CONTENT AREA */
.main-content {
    flex-grow: 1;
    margin-left: var(--sidebar-width);
    padding: 2rem 4rem;
    width: calc(100% - var(--sidebar-width));
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 100vh;
    background: transparent;
}

/* Desktop: Content Expanded (Full Width when sidebar collapsed) */
.main-content.expanded {
    margin-left: 0;
    width: 100%;
}

/* =========================================
   4. TOP NAVBAR (FIXED)
   ========================================= */
.top-navbar {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0 1.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.left-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-btn {
    background: transparent;
    color: var(--text-grey);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 4px;
}

.toggle-btn:hover {
    background: #f0f0f0;
    color: var(--primary-orange);
}

.page-title {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.right-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* User Profile in Navbar */
.user-details-box {
    text-align: right;
    line-height: 1.3;
    margin-right: 10px;
}

#navUserName {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
}

#navUserPosition {
    font-size: 0.75rem;
    color: #888;
}

#navUserInitial {
    width: 38px;
    height: 38px;
    background: var(--primary-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Combined Staff Info Badge (Points + Leave Balance) */
.staff-info-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 12px;
    background: var(--white);
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.8rem;
    margin-right: 15px;
    transition: all 0.2s ease;
}

.staff-info-badge:hover {
    border-color: var(--primary-orange);
    background: #fffbf5;
}

.staff-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
    font-weight: 600;
}

.staff-info-item .material-icons {
    font-size: 16px;
    color: #7f8c8d;
}

.staff-info-divider {
    width: 1px;
    height: 16px;
    background: #e0e0e0;
}

.staff-info-value {
    color: var(--primary-orange);
    font-weight: 700;
}

.staff-info-loading {
    color: #95a5a6;
    font-size: 0.75rem;
    font-style: italic;
}

/* Click cursor for points item */
.points-item {
    cursor: pointer;
}

.points-item:hover {
    color: var(--primary-orange);
}

/* Responsive - Simplify on mobile */
@media (max-width: 768px) {
    .staff-info-badge {
        padding: 5px 8px;
        gap: 8px;
    }

    .staff-info-item {
        gap: 4px;
    }

    .staff-info-item .material-icons {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .staff-info-badge {
        font-size: 0.75rem;
        padding: 4px 6px;
        gap: 6px;
    }
}

/* =========================================
   5. DASHBOARD (CALENDAR) STYLES
   ========================================= */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Override for centered header - specific to dashboard pages only */
#staff-view .dashboard-header-centered h2,
#staff-view .dashboard-header-centered .dashboard-title,
#bod-view .dashboard-header-centered h2,
#bod-view .dashboard-header-centered .dashboard-title {
    text-align: center;
    width: 100%;
}

.current-month {
    color: var(--primary-orange);
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

/* Dashboard header month display */
.calendar-header .current-month {
    display: block;
    text-align: center;
    margin-top: 15px;
    width: 100%;
}

/* Dashboard Header - Centered Layout */
/* ============================================
   PAGE HEADER COMPONENT - BEM METHODOLOGY
   ============================================ */

/* Block: page-header */
.page-header {
    padding: 24px 20px;
    background: linear-gradient(135deg, #fff 0%, #fef9f3 100%);
    border: 1px solid #f3e7cd;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(254, 177, 57, 0.08);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Element: Icon wrapper */
.page-header__icon-wrapper {
    margin-bottom: 16px;
}

/* Element: Icon */
.page-header__icon {
    width: 64px !important;
    height: 64px !important;
    background: linear-gradient(135deg, #fff4e1 0%, #ffe4c4 100%) !important;
    border: 2px solid #f5d6a4 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 2rem !important;
    line-height: 1 !important;
    color: #d97706 !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15) !important;
}

/* Element: Content container */
.page-header__content {
    text-align: center;
}

/* Element: Title */
.page-header__title {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1f2d3d;
    letter-spacing: -0.01em;
    text-align: center;
}

/* Element: Subtitle */
.page-header__subtitle {
    margin: 10px auto 0;
    color: #7c8898;
    font-size: 0.98rem;
    max-width: 500px;
    line-height: 1.6;
    font-weight: 500;
    text-align: center;
}

/* Element: Meta (for date, badges, etc) */
.page-header__meta {
    margin-top: 15px;
    width: 100%;
    text-align: center;
}

/* Modifier: Staff view - has date below */
.page-header--staff .page-header__meta {
    display: block;
}

/* Modifier: BOD view - no date */
.page-header--bod .page-header__meta {
    display: none;
}

/* Leave Form Header Card */
.leave-header-card {
    background: linear-gradient(135deg, #fff 0%, #fef9f3 100%);
    border: 1px solid #f3e7cd;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(254, 177, 57, 0.08);
}

.leave-header-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #fff4e1 0%, #ffe4c4 100%);
    border: 3px solid #f5d6a4;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem !important;
    color: #d97706;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.2);
    margin: 0 auto 20px auto;
}

.leave-header-title {
    margin: 0 0 10px 0;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1f2d3d;
    letter-spacing: -0.01em;
}

.leave-header-subtitle {
    margin: 0;
    color: #7c8898;
    font-size: 0.98rem;
    line-height: 1.6;
    font-weight: 500;
}

.dashboard-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
}

.dashboard-header-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #fff4e1 0%, #ffe4c4 100%);
    border: 2px solid #f5d6a4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #d97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
    flex-shrink: 0;
}

.dashboard-header-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    width: 100%;
}

.dashboard-header-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-title {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1f2d3d;
    letter-spacing: -0.01em;
    text-align: center;
}

.dashboard-subtitle {
    margin: 0;
    color: #7c8898;
    font-size: 0.98rem;
    line-height: 1.6;
    font-weight: 500;
}

.calendar-month-bar {
    text-align: center;
    padding: 12px 20px;
    margin-bottom: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.calendar-month-bar .current-month {
    font-size: 1.1rem;
    justify-content: center;
}

.calendar-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 60px;
}

/* Day Headers Row (Ahad, Isnin, Selasa, etc) */
.calendar-day-headers {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    gap: 2px;
    background: #f0f0f0;
    padding: 0;
    margin-bottom: 2px;
}

.week-header-space {
    background: #f0f0f0;
}

.day-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: var(--white);
    font-weight: 700;
    font-size: 0.85rem;
    text-align: center;
    padding: 12px 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Week Row Container */
.calendar-week-row {
    display: grid;
    grid-template-columns: 60px repeat(7, 1fr);
    gap: 2px;
    background: #f0f0f0;
    margin-bottom: 2px;
}

/* Week Number Label */
.week-number-label {
    background: linear-gradient(135deg, #feb139, #f39c12);
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8px;
    letter-spacing: 0.5px;
}

.day-card {
    background: var(--white);
    border: none;
    padding: 1rem;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.day-card:hover {
    background: #fffbf0;
    transform: translateY(-2px);
}

/* Today highlight */
.day-card.today {
    background: #fff8e1;
    box-shadow: inset 0 0 0 2px var(--primary-orange);
}

.day-card.today .day-number {
    color: var(--primary-orange);
}

/* Empty day cells */
.day-card.empty-day {
    background: #fafafa;
    cursor: default;
    pointer-events: none;
    min-height: 120px;
}

.day-card.empty-day:hover {
    background: #fafafa;
    transform: none;
}

.day-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.completed {
    background-color: var(--success-green);
    box-shadow: 0 0 5px var(--success-green);
}

.status-dot.pending {
    background-color: var(--warning-yellow);
}

.task-preview {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap;
}

.view-more-btn {
    font-size: 0.8rem;
    color: var(--primary-orange);
    font-weight: 700;
    margin-top: auto;
    padding-top: 10px;
    text-decoration: underline;
}

.empty-text {
    font-size: 0.8rem;
    color: #ccc;
    margin-top: 10px;
    font-style: italic;
}

.day-card.locked {
    background-color: #fafafa;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Sunday Holiday Styling */
.day-card.sunday-holiday {
    background: #f5f5f5;
    cursor: not-allowed;
}

.day-card.sunday-holiday:hover {
    background: #f5f5f5;
    transform: none;
}

/* Today takes priority over Sunday styling */
.day-card.sunday-holiday.today {
    background: #fff8e1;
    box-shadow: inset 0 0 0 2px var(--primary-orange);
}

.holiday-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #e0e0e0;
    color: #666;
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    margin-top: 10px;
}

/* =========================================
   6. HR MONITOR STYLES (monitor.html)
   ========================================= */
.monitor-controls {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.monitor-controls input[type="date"] {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
}

.staff-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.staff-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s;
}

.staff-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.staff-card h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

.staff-card small {
    color: #888;
    display: block;
    margin-bottom: 15px;
}

.task-box {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    min-height: 60px;
    border-left: 4px solid #ccc;
    white-space: pre-wrap;
}

.task-box.completed {
    border-left-color: var(--success-green);
    background: var(--success-bg);
}

.task-box.pending {
    border-left-color: var(--warning-yellow);
    background: var(--warning-bg);
}

.task-box.empty {
    border-left-color: var(--danger-red);
    color: #999;
    font-style: italic;
    background: var(--danger-bg);
}

/* =========================================
   7. REGISTER FORM STYLES (register.html)
   ========================================= */
.register-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 5px solid var(--primary-orange);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.95rem;
}

.full-width {
    grid-column: span 2;
}

/* Responsive Calendar */
@media (max-width: 1024px) {
    .calendar-day-headers {
        grid-template-columns: 50px repeat(7, 1fr);
    }

    .calendar-week-row {
        grid-template-columns: 50px repeat(7, 1fr);
    }

    .day-card {
        min-height: 100px;
        padding: 0.75rem;
    }

    .day-header {
        font-size: 0.75rem;
        padding: 10px 6px;
    }
}

@media (max-width: 768px) {

    /* Hide day headers on mobile */
    .calendar-day-headers {
        display: none;
    }

    /* Make each week a vertical list */
    .calendar-week-row {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 20px;
        background: var(--white);
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    /* Week label as header */
    .week-number-label {
        font-size: 1rem;
        padding: 12px 15px;
        background: linear-gradient(135deg, #feb139, #f39c12);
        color: var(--white);
        text-align: left;
        border-radius: 0;
    }

    /* Day cards as list items */
    .day-card {
        min-height: auto;
        padding: 15px;
        border-bottom: 1px solid #f0f0f0;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }

    .day-card:last-child {
        border-bottom: none;
    }

    /* Empty days - hide on mobile */
    .day-card.empty-day {
        display: none;
    }

    /* Day number on the left */
    .day-number {
        font-size: 1.5rem;
        font-weight: 700;
        min-width: 50px;
        margin-bottom: 0;
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
    }

    /* Add day name below number on mobile */
    .day-number::after {
        content: attr(data-day-name);
        font-size: 0.7rem;
        font-weight: 600;
        color: #666;
        text-transform: uppercase;
    }

    /* Task content takes remaining space */
    .task-preview {
        font-size: 0.9rem;
        flex: 1;
    }

    .view-more-btn {
        font-size: 0.85rem;
    }

    /* Status dot */
    .status-dot {
        position: absolute;
        top: 15px;
        right: 15px;
    }

    /* Holiday badge */
    .holiday-badge {
        flex: 1;
        margin-top: 0;
    }

    /* Today highlight */
    .day-card.today {
        background: #fff8e1;
        border-left: 4px solid var(--primary-orange);
    }

    /* Sunday styling */
    .day-card.sunday-holiday {
        background: #f9f9f9;
    }
}

@media (max-width: 600px) {

    /* Even more compact for very small screens */
    .day-number {
        font-size: 1.3rem;
        min-width: 45px;
    }

    .day-number::after {
        font-size: 0.65rem;
    }

    .week-number-label {
        font-size: 0.95rem;
        padding: 10px 12px;
    }

    .task-preview {
        font-size: 0.85rem;
    }

    .holiday-badge {
        font-size: 0.85rem;
        padding: 8px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }
}

/* =========================================
   8. MODAL & OVERLAY (Popups)
   ========================================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.close-btn {
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 1.5rem 2rem;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
    background: #fafafa;
}

.task-textarea {
    width: 100%;
    height: 150px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
    font-size: 16px;
    margin-bottom: 1rem;
    resize: none;
}

.status-checkbox-group {
    margin: 10px 0 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 6px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.status-checkbox-group input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.status-checkbox-group label {
    cursor: pointer;
    font-weight: 600;
}

/* =========================================
   9. MOBILE RESPONSIVE
   ========================================= */
@media screen and (max-width: 768px) {
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }

    /* Sidebar Hidden by Default on Mobile */
    .sidebar {
        transform: translateX(-100%);
        box-shadow: none;
    }

    /* Sidebar Active/Open State */
    .sidebar.mobile-active {
        transform: translateX(0);
        box-shadow: 5px 0 25px rgba(0, 0, 0, 0.15);
    }

    /* Show Close Button on Mobile */
    .mobile-close-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #f8f8f8;
        color: #555;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-close-btn:hover,
    .mobile-close-btn:active {
        background: #ffebee;
        color: var(--danger-red);
        transform: scale(1.05);
    }

    .mobile-close-btn .material-icons {
        font-size: 20px;
    }

    .top-navbar {
        padding: 0 0.75rem;
        height: 60px;
    }

    .left-nav {
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .page-title {
        font-size: 0.9rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }

    .toggle-btn {
        padding: 6px;
        flex-shrink: 0;
    }

    .right-nav {
        gap: 8px;
        flex-shrink: 0;
    }

    /* Hide profile detail text on mobile, keep avatar */
    .user-details-box {
        display: none;
    }

    #navUserInitial {
        width: 34px;
        height: 34px;
        font-size: 1rem;
    }

    .calendar-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 1.5rem;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-bottom: 40px;
    }

    .day-card {
        min-height: auto;
        padding: 1.3rem;
    }

    /* Sidebar Nav Items on Mobile */
    .nav-item {
        padding: 11px 16px;
        font-size: 0.9rem;
    }

    .sub-item {
        padding: 8px 16px 8px 48px;
        font-size: 0.85rem;
    }

    /* Sidebar Footer on Mobile */
    .sidebar-footer {
        padding: 10px;
    }

    .logout-item {
        padding: 9px 14px;
    }
}

/* Extra small mobile screens */
@media screen and (max-width: 400px) {
    .top-navbar {
        padding: 0 0.5rem;
    }

    .page-title {
        font-size: 0.85rem;
        max-width: 120px;
    }

    #navUserInitial {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .toggle-btn .material-icons {
        font-size: 20px;
    }

    #notificationBtn .material-icons {
        font-size: 20px;
    }
}

/* Overlay Animation */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* =========================================
   10. SIDEBAR DROPDOWN (SUBMENU)
   ========================================= */
.nav-item.has-submenu {
    justify-content: space-between;
}

.dropdown-icon {
    font-size: 1rem;
    transition: transform 0.3s;
}

/* Putar ikon bila menu terbuka */
.nav-item.has-submenu.open .dropdown-icon {
    transform: rotate(180deg);
}

/* Container Submenu */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    background-color: #fafafa;
    border-bottom: 1px solid #eee;
}

.submenu.open {
    display: block;
    animation: slideDown 0.2s ease-out;
}

/* Item dalam Submenu */
.sub-item {
    padding: 8px 16px 8px 48px;
    /* Indentation */
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--text-grey);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.sub-item:hover {
    color: var(--primary-orange);
    background-color: #fff9f0;
}

.sub-item.active {
    color: var(--primary-orange);
    background-color: #fff9f0;
    border-left-color: var(--primary-orange);
    font-weight: 600;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   11. BOD DASHBOARD (Quick Links)
   ========================================= */
.bod-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.quick-card {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.quick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-orange);
}

.quick-card .material-icons {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-orange);
}

.quick-card h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.quick-card p {
    margin: 0;
    color: #777;
    font-size: 0.9rem;
}

/* Warna Khas Ikon Dashboard BOD */
.icon-approval {
    color: #2ecc71 !important;
}

.icon-monitor {
    color: #3498db !important;
}

.icon-history {
    color: #9b59b6 !important;
}

.icon-register {
    color: #e67e22 !important;
}


/* =========================================
   8. NOTIFICATION SYSTEM v2.0
   Clean & Modern Design
   ========================================= */

/* === Container & Button === */
#notificationContainer {
    position: relative;
}

#notificationBtn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    border-radius: 8px;
}

#notificationBtn:hover {
    color: var(--primary-orange);
    background: rgba(254, 177, 57, 0.1);
}

#notificationBadge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e74c3c;
    color: var(--white);
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.7rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(231, 76, 60, 0.3);
}

#notificationBadge.visible {
    display: flex;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* === Dropdown Panel === */
.notif-dropdown {
    position: fixed;
    top: 70px;
    right: 16px;
    width: 380px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 100px);
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #eee;
    transform: translateY(-10px);
    opacity: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.notif-dropdown.open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

/* === Header === */
.notif-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.notif-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
}

.notif-header-actions {
    display: flex;
    gap: 8px;
}

.notif-header-actions button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    color: #888;
    transition: all 0.2s;
}

.notif-header-actions button:hover {
    background: #e3f2fd;
    color: #2196f3;
}

/* Clear All Button Hover */
#clearAllBtn:hover {
    background: #ffebee;
    color: #e74c3c;
}

/* === Notification List === */
.notif-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

/* Group Labels */
.notif-group-label {
    padding: 10px 20px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f9f9f9;
    position: sticky;
    top: 0;
    z-index: 1;
}

/* Empty State */
.notif-empty {
    padding: 50px 20px;
    text-align: center;
    color: #bbb;
}

.notif-empty .material-icons {
    font-size: 56px;
    color: #e0e0e0;
    margin-bottom: 12px;
}

.notif-empty p {
    margin: 0;
    font-size: 0.95rem;
}

/* === Notification Item === */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 20px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    border-bottom: 1px solid #f5f5f5;
}

.notif-item:hover {
    background: #f8f9fa;
}

.notif-item.unread {
    background: #fffbf5;
    border-left: 3px solid var(--primary-orange);
}

.notif-item.unread:hover {
    background: #fff5e6;
}

/* Icon */
.notif-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-icon .material-icons {
    font-size: 22px;
}

/* Content */
.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #2c3e50;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.unread-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-orange);
    border-radius: 50%;
    flex-shrink: 0;
}

.notif-message {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.notif-time {
    font-size: 0.75rem;
    color: #999;
}

/* Delete Button */
.notif-delete {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #ccc;
    opacity: 0;
    transition: all 0.2s;
}

.notif-item:hover .notif-delete {
    opacity: 1;
}

.notif-delete:hover {
    background: #ffebee;
    color: #e74c3c;
}

.notif-delete .material-icons {
    font-size: 18px;
}

/* === Footer === */
.notif-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    background: #fafafa;
}

.view-all-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.view-all-link:hover {
    color: #e59f2e;
    gap: 10px;
}

.view-all-link .material-icons {
    font-size: 18px;
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .notif-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        max-height: 75vh;
        border-radius: 20px 20px 0 0;
        transform: translateY(100%);
    }

    .notif-dropdown.open {
        transform: translateY(0);
    }

    .notif-header {
        padding: 20px;
        border-radius: 20px 20px 0 0;
    }

    .notif-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
    }

    .notif-list {
        max-height: calc(75vh - 140px);
    }

    .notif-item {
        padding: 16px;
    }

    .notif-delete {
        opacity: 1;
    }
}

/* === Full Page Notification Styles === */
.notifications-page-container {
    max-width: 700px;
    margin: 0 auto;
}

.full-notif-list {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    overflow: hidden;
}

.full-notif-list .notif-item {
    padding: 18px 20px;
}

.full-notif-list .notif-icon {
    width: 48px;
    height: 48px;
}

.full-notif-list .notif-title {
    font-size: 1rem;
}

.full-notif-list .notif-message {
    font-size: 0.9rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
}

.page-header-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.page-header-actions button {
    padding: 10px 18px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.page-header-actions .btn-read {
    background: #e3f2fd;
    color: #1976d2;
}

.page-header-actions .btn-read:hover {
    background: #bbdefb;
}

.page-header-actions .btn-clear {
    background: #ffebee;
    color: #c62828;
}

.page-header-actions .btn-clear:hover {
    background: #ffcdd2;
}

/* =========================================
   12. STAFF HISTORY / TRACKING STYLES
   ========================================= */
.history-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-top: 20px;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.history-table th {
    background-color: #f8f9fa;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-grey);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.history-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dark);
    font-size: 0.95rem;
}

.history-table tr:last-child td {
    border-bottom: none;
}

.history-table tr:hover {
    background-color: #fafafa;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}

.status-badge.submitted {
    background: #e3f2fd;
    color: #1565c0;
}

.status-badge.approved {
    background: var(--success-bg);
    color: var(--success-green);
}

.status-badge.rejected {
    background: var(--danger-bg);
    color: var(--danger-red);
}

/* =========================================
   13. COMPREHENSIVE MOBILE RESPONSIVE STYLES
   All Pages - Optimized for Mobile
   ========================================= */

/* Tablet View - 768px to 1024px */
@media screen and (max-width: 1024px) {
    .main-content {
        padding: 1.5rem 2rem;
    }

    .calendar-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 18px;
    }

    .staff-list-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Mobile View - Max 768px */
@media screen and (max-width: 768px) {

    /* === REGISTER PAGE === */
    .register-container {
        padding: 20px;
        border-radius: 12px;
    }

    .register-container h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    /* === SIDEBAR MOBILE === */
    .sidebar {
        /* Reset Floating Style for Mobile */
        width: 260px;
        height: 100vh;
        top: 0;
        left: 0;
        border-radius: 0;
        transform: translateX(-100%);
        border: none;
        background: rgba(255, 255, 255, 0.98);
        /* Higher opacity for readability */
        box-shadow: none;
        z-index: 1001;
        /* Above Overlay */
    }

    .sidebar.mobile-active {
        transform: translateX(0);
        box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    }

    .mobile-close-btn {
        display: block;
        /* Show Close Button */
    }

    /* === MONITOR PAGE === */
    .monitor-controls {
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .monitor-controls input,
    .monitor-controls select,
    .monitor-controls button {
        width: 100%;
    }

    .staff-list-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .staff-card {
        padding: 16px;
    }

    .staff-card h3 {
        font-size: 1rem;
    }

    /* === MODAL IMPROVEMENTS === */
    .modal-content {
        padding: 1.5rem;
        max-width: 95%;
        margin: 0 auto;
    }

    .modal-header h3 {
        font-size: 1.1rem;
    }

    .task-textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
        height: 120px;
    }

    /* === BOD DASHBOARD === */
    .bod-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .quick-card {
        min-height: 150px;
        padding: 20px;
    }

    .quick-card .material-icons {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }

    .quick-card h3 {
        font-size: 1rem;
    }

    .quick-card p {
        font-size: 0.85rem;
    }

    /* === TABLE RESPONSIVE === */
    .history-table {
        font-size: 0.85rem;
    }

    .history-table th,
    .history-table td {
        padding: 10px 12px;
    }

    .history-table th {
        font-size: 0.75rem;
    }

    /* === ANNOUNCEMENT PAGE === */
    .post-card {
        padding: 16px;
        border-radius: 12px;
    }

    .post-header {
        gap: 10px;
    }

    .post-avatar {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .post-author-name {
        font-size: 0.95rem;
    }

    .post-time {
        font-size: 0.75rem;
    }

    .post-text {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .post-image {
        border-radius: 10px;
        max-height: 300px;
    }

    /* === LEAVE PAGES === */
    .leave-form-container {
        padding: 20px;
    }

    .leave-form-group {
        margin-bottom: 16px;
    }

    .leave-form-group label {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }

    .leave-form-group input,
    .leave-form-group select,
    .leave-form-group textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
        padding: 10px;
    }

    /* === PROFILE PAGE === */
    .profile-container {
        padding: 20px;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }

    .profile-info {
        text-align: center;
    }

    .profile-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* === POINTS BADGE MOBILE === */
    #points-badge {
        padding: 4px 8px;
        font-size: 0.75rem;
        margin-right: 8px;
    }

    #points-badge .material-icons {
        font-size: 14px;
    }
}

/* Extra Small Mobile - Max 480px */
@media screen and (max-width: 480px) {

    /* === GLOBAL === */
    body {
        font-size: 14px;
    }

    .main-content {
        padding: 1rem;
    }

    .top-navbar {
        padding: 0 0.75rem;
        margin-bottom: 0.75rem;
    }

    /* === CALENDAR === */
    .calendar-header h2 {
        font-size: 1.2rem;
    }

    .current-month {
        font-size: 0.85rem;
    }

    .day-card {
        padding: 1rem;
        min-height: auto;
    }

    .day-number {
        font-size: 1rem;
    }

    .task-preview {
        font-size: 0.85rem;
    }

    /* === MODALS === */
    .modal {
        padding: 10px;
    }

    .modal-content {
        padding: 1.2rem;
    }

    .modal-header {
        margin-bottom: 1.2rem;
    }

    .modal-header h3 {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    /* === REGISTER FORM === */
    .register-container {
        padding: 16px;
    }

    .form-group input,
    .form-group select {
        padding: 8px;
        font-size: 14px;
    }

    /* === STAFF CARDS === */
    .staff-card {
        padding: 14px;
    }

    .staff-card h3 {
        font-size: 0.95rem;
    }

    .staff-card small {
        font-size: 0.75rem;
    }

    .task-box {
        padding: 10px;
        font-size: 0.85rem;
    }

    /* === BADGES === */
    .status-badge {
        padding: 4px 10px;
        font-size: 0.7rem;
    }

    /* === TABLES === */
    .history-table th,
    .history-table td {
        padding: 8px 10px;
        font-size: 0.8rem;
    }

    /* === LOGIN PAGE === */
    .login-card {
        padding: 2rem 1.5rem;
    }

    .login-card .brand-logo {
        font-size: 1.6rem;
    }

    .login-subtitle {
        font-size: 0.85rem;
    }

    .input-group input {
        padding: 10px;
        font-size: 14px;
    }
}

/* Landscape Mobile Phones */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .modal-content {
        max-height: 90vh;
        overflow-y: auto;
    }

    .notif-dropdown {
        max-height: 85vh;
    }

    .sidebar {
        height: 100vh;
        overflow-y: auto;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {

    /* Increase tap targets for touch devices */
    .nav-item,
    .sub-item {
        min-height: 40px;
        padding: 11px 16px;
    }

    .toggle-btn,
    .close-btn,
    .action-btn {
        min-width: 44px;
        min-height: 44px;
    }

    /* Disable hover effects on touch devices */
    .day-card:hover,
    .staff-card:hover,
    .quick-card:hover,
    .nav-item:hover {
        transform: none;
    }

    /* Show action buttons always on touch */
    .notif-delete {
        opacity: 1;
    }
}

/* Print Styles */
@media print {

    .sidebar,
    .top-navbar,
    .toggle-btn,
    .modal,
    .notification-container,
    .btn-primary,
    .logout-item {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 0;
    }

    .day-card,
    .staff-card,
    .leave-card {
        page-break-inside: avoid;
    }
}

/* =========================================
   14. CENTRALIZED GLASS THEME (UI/UX FACELIFT)
   ========================================= */

/* GLASS PANEL (Container for Forms/Content) */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 40px;
    margin: 0 auto;
    max-width: 900px;
}

/* GLASS CARD (Interactive Dashboard Items) */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 35px 25px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-orange), #ff9f43);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    background: var(--white);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

.glass-card:hover::before {
    transform: scaleX(1);
}

.glass-card h3 {
    color: #2c3e50;
    margin: 15px 0 10px;
    font-size: 1.15rem;
    font-weight: 700;
}

.glass-card p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.glass-card .material-icons {
    font-size: 3.5rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
    /* Gradient Text for Icons */
    background: linear-gradient(135deg, var(--primary-orange), #e67e22);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card:hover .material-icons {
    transform: scale(1.1);
}

/* PAGE HEADER GLASS */
.page-header-glass {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.page-header-glass h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.page-header-glass p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* MODERN FORM ELEMENTS (Centralized) */
.form-section-title {
    background: linear-gradient(135deg, rgba(254, 177, 57, 0.1) 0%, rgba(255, 255, 255, 0.5) 100%);
    padding: 14px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    margin: 30px 0 20px 0;
    border-left: 5px solid var(--primary-orange);
    border-radius: 0 8px 8px 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #34495e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fdfdfd;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: var(--white);
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(254, 177, 57, 0.1);
}

/* GLASS BUTTON */
.btn-glass {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-orange), #ff9f43);
    color: var(--white);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(254, 177, 57, 0.3);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-glass:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(254, 177, 57, 0.4);
}

/* RESPONSIVE UTILS */
@media (max-width: 768px) {
    .glass-panel {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .glass-card {
        min-height: 180px;
    }

    .page-header-glass h2 {
        font-size: 1.6rem;
    }
}

/* GLASS GRID (Dashboard Layout) */
.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    padding: 10px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .glass-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* GRADIENT TEXT HELPERS (Specific Dashboard Icons) */
.glass-card .icon-green {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card .icon-blue {
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card .icon-purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glass-card .icon-orange {
    background: linear-gradient(135deg, #e67e22, #d35400);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================================
   15. TASK MODAL STYLES (Centralized)
   ========================================= */
.task-checklist {
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    min-height: 60px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.task-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.task-item:hover {
    background: linear-gradient(135deg, #fffbf5 0%, #fff5e6 100%);
}

.task-item.completed {
    background: linear-gradient(135deg, #f0fff4 0%, #e8f8f0 100%);
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: #95a5a6;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    margin-left: 18px;
    cursor: pointer;
    accent-color: #27ae60;
    flex-shrink: 0;
}

.task-text {
    flex: 1;
    padding: 16px 0;
    font-size: 0.95rem;
    color: #2c3e50;
    word-break: break-word;
    line-height: 1.5;
    font-weight: 500;
}

.btn-delete-task {
    background: none;
    border: none;
    color: transparent;
    cursor: pointer;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.task-item:hover .btn-delete-task {
    color: #d0d0d0;
}

.btn-delete-task:hover {
    color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.1);
}

/* Add Task Input Row - Modern */
.add-task-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: #fcfcfc;
    border-radius: 0 0 12px 12px;
}

.add-icon {
    margin-left: 16px;
    color: var(--primary-orange);
    font-size: 20px !important;
    opacity: 0.6;
}

.add-task-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 16px 16px 16px 0;
    font-size: 0.93rem;
    background: transparent;
    color: #2c3e50;
    font-weight: 500;
}

.add-task-input::placeholder {
    color: #b0b0b0;
    font-style: italic;
    font-weight: 400;
}

.add-task-input:focus::placeholder {
    color: #d0d0d0;
}

/* Progress - Modern */
.task-progress-section {
    margin: 22px 0;
    padding: 18px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f0f0 100%);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    margin-bottom: 8px;
    color: #555;
    font-weight: 700;
}

.progress-bar-container {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 4px;
    transition: width 0.4s ease;
    box-shadow: 0 0 8px rgba(39, 174, 96, 0.3);
}

/* Animation for new task */
.task-item {
    animation: fadeSlideIn 0.25s ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Remarks Section - Modern */
.remarks-section {
    margin-bottom: 26px;
    padding: 20px;
    background: linear-gradient(135deg, #fffbf5 0%, #fff5e6 100%);
    border-radius: 12px;
    border: 2px solid #ffe8cc;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.08);
}

.remarks-section label {
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.task-remarks {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 0.92rem;
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
}

.task-remarks:hover {
    border-color: #d0d0d0;
}

.task-remarks:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(230, 126, 34, 0.1);
}

.task-remarks::placeholder {
    color: #b0b0b0;
    font-style: italic;
}

/* Scrollbar styling - Modern */
.task-checklist::-webkit-scrollbar {
    width: 8px;
}

.task-checklist::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.task-checklist::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #d0d0d0, #b0b0b0);
    border-radius: 4px;
}

.task-checklist::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #b0b0b0, #909090);
}

/* =========================================
   16. CENTRALIZED FORM STYLES (Leave & Register)
   ========================================= */

/* FORM LAYOUT UTILS */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.full-width {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }
}

/* LEAVE TYPE SELECTION */
.leave-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.leave-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--white);
}

.leave-option:hover {
    background: linear-gradient(135deg, #fff9f0, #ffe8cc);
    border-color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 126, 34, 0.15);
}

.leave-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-orange);
    cursor: pointer;
}

.leave-option input[type="radio"]:checked+span {
    font-weight: 700;
    color: var(--primary-orange);
}

.leave-option:has(input:checked) {
    background: linear-gradient(135deg, #fff5e6, #ffe8cc);
    border-color: var(--primary-orange);
    box-shadow: 0 4px 16px rgba(230, 126, 34, 0.2);
}

@media (max-width: 768px) {
    .leave-type-grid {
        grid-template-columns: 1fr;
    }
}

/* WARNING BOX */
.warning-box {
    background: linear-gradient(135deg, #fff3cd, #ffe8a1);
    color: #856404;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    margin-bottom: 20px;
    display: none;
    border: 2px solid #ffeaa7;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(133, 100, 4, 0.1);
}

.warning-box .material-icons {
    font-size: 1.3rem;
    color: #f39c12;
}

/* FILE UPLOAD */
.form-group input[type="file"] {
    padding: 10px;
    border: 2px dashed #e8e8e8;
    background: #fafafa;
    cursor: pointer;
}

.form-group input[type="file"]:hover {
    border-color: var(--primary-orange);
    background: #fff9f0;
}

.form-group small {
    color: #7f8c8d;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
}

.form-group small .material-icons {
    font-size: 0.9rem;
}

/* REQUIRED STAR */
.required {
    color: #e74c3c;
    font-weight: 700;
}

/* USER DETAILS BOX (Topbar) */
.user-details-box {
    text-align: right;
    line-height: 1.3;
    margin-right: 10px;
}

@media (max-width: 768px) {
    .user-details-box {
        display: none;
    }
}

/* =========================================
   17. PHASE 2: SYSTEM-WIDE GLASS THEME
   (Tables, Badges, Monitor, Register)
   ========================================= */

/* GLASS TABLE */
.glass-table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.glass-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--white);
    width: 100%;
    white-space: nowrap;
}

.glass-table th {
    background: #f8f9fa;
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    color: #6c757d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e9ecef;
    position: sticky;
    top: 0;
}

.glass-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    color: #2c3e50;
    font-size: 0.95rem;
    vertical-align: middle;
    transition: background 0.2s;
}

.glass-table tr:hover td {
    background-color: #fdfdfd;
}

.glass-table tr:last-child td {
    border-bottom: none;
}

/* STATUS BADGES (Standardized) */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.badge-success {
    background: #e8f5e9;
    color: #2ecc71;
}

.badge-warning {
    background: #fff3e0;
    color: #f39c12;
}

.badge-danger {
    background: #fdecea;
    color: #e74c3c;
}

.badge-info {
    background: #e3f2fd;
    color: #3498db;
}

.badge-grey {
    background: #f8f9fa;
    color: #95a5a6;
}

/* INFO BOX (Glass) */
.glass-info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    padding: 16px 20px;
    border-radius: 12px;
    border-left: 5px solid #2196f3;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.1);
}

.glass-info-box .material-icons {
    color: #1565c0;
    font-size: 1.4rem;
}

.glass-info-box p {
    margin: 0;
    color: #0d47a1;
    font-weight: 600;
    font-size: 0.9rem;
}

/* MONITOR PAGE STATS */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 10px;
}

.stat-card {
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: #95a5a6;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .glass-table th,
    .glass-table td {
        padding: 12px 15px;
    }
}

/* GLASS HEADER FLEX (For pages with controls) */
.glass-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 20px;
}

.glass-header-flex h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #2c3e50;
}

/* SMALL GLASS BUTTON */
.btn-glass-sm {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-orange), #ff9f43);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(254, 177, 57, 0.2);
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
}

.btn-glass-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(254, 177, 57, 0.3);
}

@media (max-width: 768px) {
    .glass-header-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ACTION BUTTONS (Table) */
.action-btn {
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
    margin-right: 4px;
    color: #95a5a6;
}

.action-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
    color: var(--primary-orange);
}

.action-btn .material-icons {
    font-size: 20px;
}

/* MONITOR STAT COLORS */
.stat-completed .stat-value,
.stat-completed .stat-label {
    color: #2ecc71;
}

.stat-pending .stat-value,
.stat-pending .stat-label {
    color: #f39c12;
}

.stat-empty .stat-value,
.stat-empty .stat-label {
    color: #95a5a6;
}

/* REMARKS BOX (Monitor) */
.remarks-box {
    margin-top: 12px;
    padding: 15px;
    background: linear-gradient(135deg, #fffbf0 0%, #fff3cd 100%);
    border-left: 4px solid #ffc107;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #ffeeba;
}

.remarks-label {
    font-weight: 700;
    color: #d35400;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.remarks-text {
    color: #5d4037;
    font-size: 0.9rem;
    font-style: italic;
    line-height: 1.5;
}

/* GLASS LIST CARD (for lists like HR History) */
.glass-list-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 5px solid #ccc;
    /* Default border color */
}

.glass-list-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* GLASS FORM ELEMENTS */
.glass-search-box,
.glass-filter-select,
.glass-input {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #2c3e50;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.03);
}

.glass-search-box:focus,
.glass-filter-select:focus,
.glass-input:focus {
    background: rgba(255, 255, 255, 0.95);
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 3px rgba(254, 177, 57, 0.2);
    outline: none;
}

/* GLASS MODAL CONTENT */
.glass-modal-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    margin: auto;
    position: relative;
    animation: slideUp 0.3s ease-out;
}

/* GLASS SECTION TITLE */
.glass-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-orange);
    width: fit-content;
}

.glass-section-title .material-icons {
    color: var(--primary-orange);
}

/* GENERIC GLASS PANEL */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    padding: 20px;
    margin-bottom: 20px;
}

/* GLASS BADGES */
.badge-glass-blue {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.8), rgba(41, 128, 185, 0.9));
    color: var(--white);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 5px rgba(52, 152, 219, 0.2);
}

.badge-glass-purple {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.8), rgba(142, 68, 173, 0.9));
    color: var(--white);
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 5px rgba(155, 89, 182, 0.2);
}

/* =========================================
   14. MONITOR PAGE SPECIFIC STYLES
   ========================================= */

.monitor-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 200px;
    padding: 0 !important;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    background: rgba(255, 255, 255, 0.6);
    /* Slightly more opaque */
}

.monitor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.monitor-header {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.4);
}

.monitor-user-info {
    display: flex;
    gap: 12px;
    align-items: center;
}

.monitor-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #f59e0b;
    color: white;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.monitor-details h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
}

.monitor-details p {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: #888;
}

.monitor-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.monitor-task-content {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    white-space: pre-wrap;
}

.monitor-empty-text {
    color: #aaa;
    font-style: italic;
    font-size: 0.9rem;
    text-align: center;
    margin-top: 10px;
}

.monitor-footer {
    padding: 15px 20px;
    background: #fffbf5;
    border-top: 1px solid rgba(254, 177, 57, 0.1);
    font-size: 0.85rem;
    color: #666;
}

.remarks-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
    color: #e67e22;
    margin-bottom: 5px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.task-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-completed {
    background: #e8f5e9;
    color: #2ecc71;
    border: 1px solid #c8e6c9;
}

.badge-pending {
    background: #fff3e0;
    color: #f57c00;
    border: 1px solid #ffe0b2;
}

.badge-inactive {
    background: #f5f5f5;
    color: #999;
    border: 1px solid #eee;
}

/* =========================================
   15. STAFF MANAGEMENT PAGE STYLES
   ========================================= */

.glass-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 10px;
}

.staff-manage-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.staff-manage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-orange);
}

.staff-card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(to right, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
}

.staff-card-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #f59e0b;
    color: white;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(230, 126, 34, 0.3);
}

.staff-card-info {
    flex: 1;
    min-width: 0;
}

.staff-card-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: #2c3e50;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.staff-card-id {
    font-size: 0.8rem;
    color: #7f8c8d;
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.staff-card-body {
    padding: 20px;
    flex: 1;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.info-label {
    color: #95a5a6;
    font-weight: 500;
}

.info-value {
    color: #34495e;
    font-weight: 600;
    text-align: right;
}

.staff-card-footer {
    padding: 15px;
    background: rgba(255, 255, 255, 0.3);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
    gap: 10px;
}

.action-icon-btn {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #555;
    text-decoration: none;
    /* Just in case */
}

.action-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-edit-staff {
    color: #3498db;
}

.btn-edit-staff:hover {
    background: #e3f2fd;
}

.btn-toggle-staff {
    color: #f39c12;
}

.btn-toggle-staff:hover {
    background: #fff3e0;
}

.btn-delete-staff {
    color: #e74c3c;
}

.btn-delete-staff:hover {
    background: #ffebee;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 5px;
}

.status-active {
    background: #2ecc71;
    box-shadow: 0 0 5px #2ecc71;
}

.status-blocked {
    background: #e74c3c;
    box-shadow: 0 0 5px #e74c3c;
}

.btn-glass-sm {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #555;
    backdrop-filter: blur(5px);
}

.btn-glass-sm:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Announcement Text & Image Styles */
.post-text {
    line-height: 1.6;
    color: #2f3640;
    word-break: break-word;
}

.post-text strong {
    font-weight: 700;
}

.post-text em {
    font-style: italic;
}

.post-text u {
    text-decoration: underline;
}

.post-text a {
    color: #3498db;
    text-decoration: underline;
}

.post-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.post-image:hover {
    transform: scale(1.01);
}

.post-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.post-image-grid {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.post-image-grid:hover {
    opacity: 0.9;
}

.image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
}

/* Sidebar Close Button */
.mobile-close-btn {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #e74c3c;
    transform: rotate(90deg);
}

/* =========================================
   NOTIFICATION SYSTEM STYLES (REFACTORED GLOBAL PANEL)
   ========================================= */
.notification-container {
    position: relative;
    margin-right: 15px;
}

#notificationBtn {
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #7f8c8d;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f2f6;
    transition: all 0.2s;
    position: relative;
}

#notificationBtn:hover {
    background: var(--primary-orange);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(254, 177, 57, 0.2);
}

#notificationBadge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid white;
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#notificationBadge.visible {
    transform: scale(1);
}

/* GLOBAL PANEL - DESKTOP DEFAULT */
.global-notif-panel {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 360px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 99999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);

    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 100px);
}

.global-notif-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* OVERLAY (Mobile mostly, but good for focus) */
.notif-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    z-index: 99990;
    /* Behind panel, above everything else */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.notif-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* HEADER & LIST STYLES (Same as before but cleaner) */
.notif-header {
    padding: 15px 20px;
    border-bottom: 1px solid #f1f2f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 16px 16px 0 0;
}

.notif-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 700;
}

.notif-header-actions {
    display: flex;
    gap: 10px;
}

.notif-header-actions button {
    background: #f8f9fa;
    border: none;
    color: #95a5a6;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s;
}

.notif-header-actions button:hover {
    color: var(--primary-orange);
    background: rgba(254, 177, 57, 0.1);
}

.mobile-close-notif {
    display: none;
    /* Hidden on desktop */
}

.notif-list {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
    scrollbar-width: thin;
}

/* Standard List Items (Reused) */
.notif-group-label {
    padding: 5px 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #95a5a6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.notif-item {
    padding: 12px 20px;
    display: flex;
    gap: 15px;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    border-left: 3px solid transparent;
}

.notif-item:hover {
    background: #fdfdfd;
}

.notif-item.unread {
    background: #fff9f0;
    border-left-color: var(--primary-orange);
}

.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
}

.unread-dot {
    width: 8px;
    height: 8px;
    background: #e74c3c;
    border-radius: 50%;
    display: inline-block;
}

.notif-message {
    font-size: 0.85rem;
    color: #7f8c8d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.notif-time {
    font-size: 0.75rem;
    color: #bdc3c7;
    margin-top: 4px;
}

.notif-delete {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #eee;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    color: #95a5a6;
}

.notif-item:hover .notif-delete {
    opacity: 1;
    right: 15px;
}

.notif-delete:hover {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.notif-empty {
    padding: 40px;
    text-align: center;
    color: #95a5a6;
}

.notif-empty .material-icons {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.5;
}

.notif-footer {
    padding: 15px;
    border-top: 1px solid #f1f2f6;
    text-align: center;
    background: white;
    border-radius: 0 0 16px 16px;
}

.view-all-link {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: color 0.2s;
}

/* =========================================
   MOBILE RESPONSIVE (GLOBAL PANEL)
   ========================================= */
@media (max-width: 768px) {
    .global-notif-panel {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
        /* Full Width Bottom Sheet */
        width: 100%;
        max-width: 100%;
        height: 85vh;
        /* 85% screen height */
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        /* Rounded Top */

        transform: translateY(100%);
        /* Slide form bottom */
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    }

    .global-notif-panel.open {
        transform: translateY(0);
    }

    .mobile-close-notif {
        display: flex;
        /* Show Close Button on Mobile */
    }

    .notif-delete {
        opacity: 1;
        /* Always show delete button on mobile */
        background: #f8f9fa;
        right: 10px;
    }
}

/* =========================================
   15. ANNOUNCEMENT BADGES & EFFECTS
   ========================================= */

/* Category Badges */
.badge-glass-red {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.badge-glass-blue {
    background: rgba(52, 152, 219, 0.15);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.badge-glass-green {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.badge-glass-gray {
    background: rgba(149, 165, 166, 0.15);
    color: #95a5a6;
    border: 1px solid rgba(149, 165, 166, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.badge-glass-yellow {
    background: rgba(241, 196, 15, 0.15);
    color: #f39c12;
    border: 1px solid rgba(241, 196, 15, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
}

.badge-glass-info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    border: 1px solid rgba(52, 152, 219, 0.2);
    backdrop-filter: blur(4px);
}

/* Pinned Post Style */
.pinned-glass {
    border: 1px solid rgba(254, 177, 57, 0.3) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 248, 225, 0.6)) !important;
    position: relative;
    overflow: hidden;
}

.pinned-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-orange);
}

/* Highlight Pulse Animation */
@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(254, 177, 57, 0.4);
        border-color: rgba(254, 177, 57, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(254, 177, 57, 0);
        border-color: rgba(254, 177, 57, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(254, 177, 57, 0);
        border-color: rgba(0, 0, 0, 0.05);
        /* Return to original border */
    }
}

.highlight-pulse {
    animation: highlightPulse 2s ease-out infinite;
}

/* Post Card Base (if missing or to reinforce) */
.glass-list-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.glass-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

/* =========================================
   16. ANNOUNCEMENT PAGE REFRESH
   ========================================= */
.announcement-page .announcement-shell {
    max-width: none;
    margin: 0;
    padding: 18px 8px 56px;
}

.announcement-page .announcement-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px !important;
    margin-bottom: 16px !important;
    border: 1px solid #dde4ec !important;
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04) !important;
    border-radius: 14px !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.announcement-page .announcement-hero-title {
    margin: 0;
    font-size: 1.45rem;
    color: #253041;
    display: flex;
    align-items: center;
    gap: 12px;
}

.announcement-page .announcement-hero-icon {
    color: var(--primary-orange);
    font-size: 2rem;
}

.announcement-page .announcement-count {
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.announcement-page .announcement-composer {
    border-left: 4px solid var(--primary-orange) !important;
    margin-bottom: 20px !important;
    border-radius: 14px !important;
    padding: 16px 20px !important;
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.announcement-page .composer-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.announcement-page .composer-avatar {
    width: 45px;
    min-width: 45px;
    height: 45px;
    background: #f0a730;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 8px 18px rgba(254, 177, 57, 0.25);
}

.announcement-page .composer-trigger {
    flex: 1;
    border-radius: 999px;
    padding: 12px 18px;
    color: #6f7a8a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
    border-color: rgba(254, 177, 57, 0.2);
}

.announcement-page .composer-trigger:hover {
    border-color: rgba(254, 177, 57, 0.4);
    box-shadow: 0 0 0 3px rgba(254, 177, 57, 0.12);
}

.announcement-page .composer-box .composer-expanded {
    display: none;
}

.announcement-page .composer-box.active .composer-prompt {
    display: none;
}

.announcement-page .composer-box.active .composer-expanded {
    display: block;
}

.announcement-page .composer-editor {
    width: 100%;
    min-height: 120px;
    border-radius: 12px;
    padding: 14px 16px;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    line-height: 1.6;
    border-color: rgba(255, 191, 87, 0.35);
}

.announcement-page .composer-editor:empty::before {
    content: attr(data-placeholder);
    color: #adb5bd;
    pointer-events: none;
}

.announcement-page .image-preview-box {
    display: none;
    margin-top: 14px;
    padding: 12px;
    background: rgba(15, 23, 42, 0.03);
    border: 1px dashed rgba(15, 23, 42, 0.14);
    border-radius: 12px;
}

.announcement-page .image-preview-caption {
    margin: 0 0 8px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #586270;
}

.announcement-page .preview-thumb {
    position: relative;
    display: inline-block;
    margin: 4px;
}

.announcement-page .preview-thumb-image {
    width: 120px;
    height: 90px;
    border-radius: 8px;
    border: 2px solid #feb139;
    object-fit: cover;
    background: #fff;
}

.announcement-page .preview-thumb.existing .preview-thumb-image {
    border-color: #3498db;
}

.announcement-page .remove-img {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.35);
}

.announcement-page .remove-img .material-icons {
    font-size: 13px;
}

.announcement-page .category-selector {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.announcement-page .category-btn {
    opacity: 0.7;
    background: rgba(245, 247, 250, 0.9);
    color: #596273;
    box-shadow: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.announcement-page .category-btn:hover,
.announcement-page .category-btn.active {
    opacity: 1;
}

.announcement-page .category-btn.cat-general.active {
    background: #7f8c8d;
    color: #fff;
}

.announcement-page .category-btn.cat-info.active {
    background: #3498db;
    color: #fff;
}

.announcement-page .category-btn.cat-event.active {
    background: #27ae60;
    color: #fff;
}

.announcement-page .category-btn.cat-urgent.active {
    background: #e74c3c;
    color: #fff;
}

.announcement-page .category-icon {
    font-size: 16px;
}

.announcement-page .composer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    margin-top: 10px;
}

.announcement-page .composer-tools {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.announcement-page .composer-tool-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 10px;
    box-shadow: none;
    background: #fff;
    color: #586270;
}

.announcement-page .composer-tool-btn .material-icons {
    font-size: 20px;
}

.announcement-page .tool-separator {
    width: 1px;
    height: 24px;
    background: rgba(15, 23, 42, 0.15);
    margin: 0 8px;
}

.announcement-page .composer-buttons {
    display: flex;
    gap: 8px;
}

.announcement-page .composer-cancel-btn {
    background: #eef1f5;
    color: #64748b;
    box-shadow: none;
}

.announcement-page .composer-submit-btn {
    color: #fff;
    background: #e59b2e;
    box-shadow: 0 4px 12px rgba(229, 155, 46, 0.25);
}

.announcement-page .composer-submit-btn .material-icons {
    font-size: 18px;
}

.announcement-page .feed-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.announcement-page .announcement-loading,
.announcement-page .announcement-empty {
    text-align: center;
    padding: 42px 20px;
    color: #8792a3;
    border: 1px dashed rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.65);
}

.announcement-page .announcement-empty.error {
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.25);
    background: rgba(254, 242, 242, 0.8);
}

.announcement-page .announcement-empty-subtext {
    font-size: 0.86rem;
    color: #9aa5b5;
    margin-top: 6px;
}

.announcement-page .announcement-loading .material-icons,
.announcement-page .announcement-empty .material-icons {
    font-size: 2.1rem;
}

.announcement-page .announcement-loading .material-icons {
    animation: spin 1s linear infinite;
}

.announcement-page .pinned-section {
    margin-bottom: 20px;
}

.announcement-page .section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #e67e22;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
}

.announcement-page .announcement-post {
    border: 1px solid rgba(208, 216, 227, 0.65);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.announcement-page .pinned-glass {
    background: rgba(255, 248, 235, 0.95) !important;
}

.announcement-page .announcement-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.announcement-page .announcement-post .post-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding-bottom: 12px;
}

.announcement-page .announcement-post .post-avatar {
    min-width: 45px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
    background: var(--avatar-bg, #34495e);
    box-shadow: var(--avatar-shadow, 0 4px 10px rgba(0, 0, 0, 0.1));
}

.announcement-page .announcement-post .post-meta {
    flex: 1;
}

.announcement-page .announcement-post .post-author {
    font-weight: 700;
    color: #243042;
    font-size: 1rem;
}

.announcement-page .announcement-post .author-role {
    font-size: 0.73rem;
    background: rgba(15, 23, 42, 0.05);
    padding: 2px 8px;
    border-radius: 999px;
    display: inline-block;
    color: #607086;
    font-weight: 600;
    margin-top: 3px;
}

.announcement-page .announcement-post .post-time {
    font-size: 0.8rem;
    color: #90a0b6;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.announcement-page .announcement-post .post-time .material-icons {
    font-size: 14px;
}

.announcement-page .announcement-post .post-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.announcement-page .announcement-post .pinned-badge {
    gap: 3px;
}

.announcement-page .announcement-post .pinned-badge .material-icons {
    font-size: 14px;
}

.announcement-page .announcement-post .post-content {
    padding: 0 8px;
}

.announcement-page .post-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    align-items: center;
    padding-top: 11px;
    border-top: 1px solid rgba(15, 23, 42, 0.07);
    margin-top: 10px;
}

.announcement-page .post-action-btn {
    border: none;
    border-radius: 10px;
    background: #f3f5f8;
    color: #556274;
    padding: 8px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.announcement-page .post-action-btn:hover {
    transform: translateY(-1px);
}

.announcement-page .post-action-btn .material-icons {
    font-size: 18px;
}

.announcement-page .post-action-btn.view {
    color: #3498db;
    background: rgba(52, 152, 219, 0.12);
}

.announcement-page .post-action-btn.pin.active {
    color: #e67e22;
    background: rgba(230, 126, 34, 0.12);
}

.announcement-page .post-action-btn.delete {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.12);
}

.announcement-page .post-seen-empty {
    font-size: 0.8rem;
    color: #bac1cc;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px;
}

.announcement-page .post-seen-empty .material-icons {
    font-size: 16px;
}

.announcement-page .post-reactions {
    margin-top: 14px;
    padding-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
}

.announcement-page .reaction-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.announcement-page .reaction-btn {
    border-radius: 15px;
    padding: 4px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 1px solid transparent;
    background: rgba(15, 23, 42, 0.04);
}

.announcement-page .reaction-btn .count {
    font-weight: 700;
    color: #777;
}

.announcement-page .reaction-btn.reacted {
    background: rgba(254, 177, 57, 0.15);
    border-color: var(--primary-orange);
}

.announcement-page .reaction-btn.reacted .count {
    color: #e67e22;
}

.announcement-page .add-reaction-btn {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8896a9;
    cursor: pointer;
}

.announcement-page .add-reaction-btn .material-icons {
    font-size: 18px;
}

.announcement-page .reaction-picker {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px;
    z-index: 100;
    max-width: 280px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 12px;
}

.announcement-page .reaction-picker.show {
    display: flex;
}

.announcement-page .reaction-option {
    font-size: 1.4rem;
    cursor: pointer;
    padding: 5px;
    transition: transform 0.2s;
}

.announcement-page .reaction-option:hover {
    transform: scale(1.18);
}

@media (max-width: 768px) {
    .announcement-page .announcement-shell {
        padding: 12px 8px 46px;
    }

    .announcement-page .announcement-hero {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }

    .announcement-page .announcement-hero-title {
        font-size: 1.2rem;
    }

    .announcement-page .composer-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .announcement-page .composer-buttons {
        width: 100%;
    }

    .announcement-page .composer-buttons .btn-glass-sm {
        flex: 1;
        justify-content: center;
    }

    .announcement-page .announcement-post .post-header {
        gap: 10px;
    }

    .announcement-page .announcement-post .post-content {
        padding: 0;
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* =========================================
   17. HR LEAVE HISTORY PAGE REFRESH
   ========================================= */
.leave-history-page .leave-history-shell {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 24px 0 56px;
}

.leave-history-page .leave-history-hero {
    margin-bottom: 18px;
}

.leave-history-page .leave-history-panel {
    max-width: none;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.leave-history-page .leave-history-heading-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.leave-history-page .leave-history-heading-icon {
    color: var(--primary-orange);
    font-size: 2.4rem;
}

.leave-history-page .leave-history-heading-text {
    text-align: left;
}

.leave-history-page .leave-history-title {
    margin: 0;
    font-size: 2rem;
    color: #1f2d3d;
    line-height: 1.2;
}

.leave-history-page .leave-history-subtitle {
    margin: 8px 0 0;
    color: #6b7280;
    font-size: 1rem;
}

.leave-history-page #historyRoleDisplay {
    font-weight: 700;
    color: var(--primary-orange);
}

.leave-history-page .leave-history-filters {
    margin-bottom: 20px;
}

.leave-history-page .leave-history-search-row {
    margin-bottom: 12px;
}

.leave-history-page .leave-history-search {
    width: 100%;
    max-width: 560px;
}

.leave-history-page .leave-history-filter-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 120px auto 180px auto;
    gap: 10px;
    align-items: center;
}

.leave-history-page .leave-status-badges {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.leave-history-page .status-chip {
    border: 1px solid #d6dde8;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 6px 12px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.84rem;
    transition: all 0.2s ease;
}

.leave-history-page .status-chip .chip-count {
    min-width: 24px;
    height: 22px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 0.76rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}

.leave-history-page .status-chip.pending.active {
    border-color: #f59e0b;
    background: #fff7ed;
    color: #b45309;
}

.leave-history-page .status-chip.approved.active {
    border-color: #22c55e;
    background: #f0fdf4;
    color: #15803d;
}

.leave-history-page .status-chip.rejected.active {
    border-color: #ef4444;
    background: #fef2f2;
    color: #b91c1c;
}

.leave-history-page .status-chip.cancelled.active {
    border-color: #94a3b8;
    background: #f8fafc;
    color: #475569;
}

.leave-history-page .leave-history-select,
.leave-history-page .leave-history-year,
.leave-history-page .leave-history-date {
    width: 100%;
}

.leave-history-page .leave-history-or-label {
    font-size: 0.86rem;
    color: #6b7280;
    white-space: nowrap;
    text-align: center;
}

.leave-history-page .leave-history-reset-btn {
    border: 1px solid #d0d7e2;
    border-radius: 10px;
    background: #f7f9fc;
    color: #374151;
    height: 42px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    cursor: pointer;
}

.leave-history-page .leave-history-reset-btn:hover {
    background: #eef2f7;
}

.leave-history-page .leave-history-reset-btn .material-icons {
    font-size: 18px;
}

.leave-history-page .leave-history-empty {
    text-align: center;
    padding: 40px 16px;
    border: 1px dashed #d6dbe3;
    border-radius: 12px;
    background: #fafbfc;
    color: #6b7280;
}

.leave-history-page .leave-history-empty .material-icons {
    font-size: 2.4rem;
    margin-bottom: 6px;
}

.leave-history-page .leave-history-empty.error {
    color: #b91c1c;
    border-color: #ef9a9a;
    background: #fef2f2;
}

.leave-history-page .leave-record-card {
    border: 1px solid #dde3ec;
    border-left: 4px solid #f59e0b;
    border-radius: 14px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    margin-bottom: 14px;
}

.leave-history-page .leave-record-card.status-approved {
    border-left-color: #22c55e;
}

.leave-history-page .leave-record-card.status-rejected {
    border-left-color: #ef4444;
}

.leave-history-page .leave-record-card.status-pending-next {
    border-left-color: #3b82f6;
}

.leave-history-page .leave-record-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf1f6;
}

.leave-history-page .leave-record-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.leave-history-page .leave-record-avatar {
    width: 42px;
    min-width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f59e0b;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.leave-history-page .leave-record-name {
    margin: 0;
    font-size: 1.02rem;
    color: #1f2937;
}

.leave-history-page .leave-record-staffid {
    color: #6b7280;
    font-size: 0.82rem;
}

.leave-history-page .leave-record-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}

.leave-history-page .leave-meta-item span {
    display: block;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.leave-history-page .leave-meta-item strong {
    color: #1f2937;
    font-size: 0.92rem;
}

.leave-history-page .leave-record-reason-box {
    background: #f8fafc;
    border: 1px solid #e5eaf1;
    border-radius: 10px;
    padding: 12px;
}

.leave-history-page .leave-reason-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.leave-history-page .leave-reason-grid span {
    color: #64748b;
}

.leave-history-page .leave-reason-grid strong {
    color: #1f2937;
}

.leave-history-page .leave-record-reason {
    color: #475569;
    font-style: italic;
    font-size: 0.9rem;
    line-height: 1.5;
}

.leave-history-page .leave-reject-box {
    margin-top: 12px;
    border: 1px solid #fecaca;
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    border-radius: 10px;
    padding: 12px;
    display: flex;
    gap: 8px;
    color: #7f1d1d;
    font-size: 0.9rem;
}

.leave-history-page .leave-reject-box .material-icons {
    color: #dc2626;
    font-size: 20px;
}

.leave-history-page .leave-attachment-wrap {
    margin-top: 10px;
}

.leave-history-page .leave-attachment-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1d4ed8;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.88rem;
    padding: 6px 10px;
    border-radius: 8px;
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

.leave-history-page .leave-attachment-link .material-icons {
    font-size: 16px;
}

.leave-history-page .leave-record-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #d6dde8;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.leave-history-page .leave-action-btn {
    border: 1px solid #d0d7e2;
    border-radius: 10px;
    background: #f8fafc;
    color: #1f2937;
    height: 36px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    cursor: pointer;
}

.leave-history-page .leave-action-btn .material-icons {
    font-size: 16px;
}

.leave-history-page .leave-action-btn.danger {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}

.leave-history-page .leave-action-btn.info {
    color: #075985;
    background: #ecfeff;
    border-color: #bae6fd;
}

@media (max-width: 992px) {
    .leave-history-page .leave-history-filter-row {
        grid-template-columns: 1fr 120px 1fr;
    }

    .leave-history-page .leave-history-or-label {
        display: none;
    }

    .leave-history-page .leave-record-meta-grid {
        grid-template-columns: repeat(2, minmax(130px, 1fr));
    }
}

@media (max-width: 768px) {
    .leave-history-page .leave-history-shell {
        padding: 16px 0 42px;
    }

    .leave-history-page .leave-history-panel {
        padding: 0;
        border-radius: 0;
    }

    .leave-history-page .leave-history-filter-row {
        grid-template-columns: 1fr;
    }

    .leave-history-page .leave-history-reset-btn {
        justify-content: center;
        width: 100%;
    }

    .leave-history-page .leave-record-header {
        flex-direction: column;
    }

    .leave-history-page .leave-record-meta-grid,
    .leave-history-page .leave-reason-grid {
        grid-template-columns: 1fr;
    }

    .leave-history-page .leave-history-heading-row {
        align-items: flex-start;
    }

    .leave-history-page .leave-history-heading-icon {
        font-size: 2rem;
    }

    .leave-history-page .leave-history-title {
        font-size: 1.45rem;
    }

    .leave-history-page .leave-history-subtitle {
        font-size: 0.92rem;
    }
}

/* ============================================
   LEAVE FORM - ENHANCED LAYOUT
   ============================================ */

/* Container */
.leave-form-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 0 0;
}

/* Progress Steps */
.form-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 50px;
    background: #f0f0f0;
    color: #888;
    font-weight: 500;
    transition: all 0.3s ease;
}

.progress-step.active {
    background: linear-gradient(135deg, var(--primary-orange), #e59b2e);
    color: white;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.progress-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-orange), #e0e0e0);
    margin: 0 10px;
}

/* Form Wrapper - Main + Sidebar */
.leave-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* Main Form Area */
.leave-form-main {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.leave-form-main .page-header-glass {
    margin-bottom: 30px;
}

/* Form Section */
.form-section {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f0f0f0;
}

.form-section:last-of-type {
    border-bottom: none;
}

/* Grid Layouts */
.form-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 120px;
    gap: 20px;
    align-items: end;
}

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Compact Form Group */
.form-group--compact input {
    text-align: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-orange);
}

/* Leave Type Grid - Compact */
.leave-type-grid-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.leave-option.leave-option--full {
    grid-column: span 2;
}

.leave-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.leave-option:hover {
    background: #fff8f0;
    border-color: #ffd8a8;
    transform: translateY(-2px);
}

.leave-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.leave-option:has(input[type="radio"]:checked) {
    background: #fff8f0;
    border-color: var(--primary-orange);
    box-shadow: 0 4px 12px rgba(254, 177, 57, 0.15);
}

.leave-option:has(input[type="radio"]:checked) .leave-icon {
    background: var(--primary-orange);
    color: white;
}

.leave-icon {
    font-size: 1.3rem !important;
    color: var(--primary-orange);
    background: linear-gradient(135deg, #fff4e1, #ffe4c4);
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* File Upload */
.file-upload-wrapper {
    position: relative;
    border: 2px dashed #d0d7de;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    background: #fafbfc;
    transition: all 0.2s ease;
}

.file-upload-wrapper:hover {
    border-color: var(--primary-orange);
    background: #fff8f0;
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #6c757d;
}

.file-upload-hint .material-icons {
    font-size: 2rem;
    color: var(--primary-orange);
}

.file-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: #6c757d;
    font-size: 0.85rem;
}

/* File Selected Indicator */
.file-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    border-radius: 12px;
    margin-top: 8px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.file-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    color: #4caf50;
    font-size: 24px !important;
    flex-shrink: 0;
}

.file-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: #1b5e20;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.file-size {
    font-size: 0.8rem;
    color: #388e3c;
    display: block;
}

.file-remove-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(244, 67, 54, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.file-remove-btn:hover {
    background: #f44336;
}

.file-remove-btn:hover .material-icons {
    color: white;
}

.file-remove-btn .material-icons {
    font-size: 1.2rem;
    color: #f44336;
    transition: color 0.2s ease;
}

/* Submit Button Large */
.btn-glass--large {
    width: 100%;
    padding: 18px 32px;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Sidebar */
.leave-form-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}

.sidebar-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar-card h3 .material-icons {
    color: var(--primary-orange);
}

.sidebar-card--tips {
    background: linear-gradient(135deg, #fff8f0, #fff);
    border: 1px solid #ffe4c4;
}

.sidebar-card--tips h3 .material-icons {
    color: #f39c12;
}

.sidebar-card--tips ul {
    margin: 0;
    padding-left: 20px;
}

.sidebar-card--tips li {
    margin-bottom: 12px;
    color: #666;
    line-height: 1.6;
}

.sidebar-card--tips li:last-child {
    margin-bottom: 0;
}

/* Leave Info List */
.leave-info-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.leave-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.leave-info-item:hover {
    background: #fff8f0;
    transform: translateX(4px);
}

.leave-info-icon {
    font-size: 1.8rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.leave-info-item div {
    display: flex;
    flex-direction: column;
}

.leave-info-item strong {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.leave-info-item span {
    color: #888;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .leave-form-wrapper {
        grid-template-columns: 1fr;
    }

    .leave-form-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-card {
        flex: 1;
        min-width: 300px;
    }
}

@media (max-width: 992px) {
    .form-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .leave-type-grid-compact {
        grid-template-columns: repeat(3, 1fr);
    }

    .leave-option.leave-option--full {
        grid-column: span 2;
    }

    .form-row-3 {
        grid-template-columns: 1fr 1fr;
    }

    .form-group--compact {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .leave-form-container {
        padding: 15px 0 0;
    }

    .leave-form-main {
        padding: 20px;
    }

    .form-grid-4,
    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .leave-type-grid-compact {
        grid-template-columns: repeat(2, 1fr);
    }

    .leave-option.leave-option--full {
        grid-column: span 2;
    }

    .form-row-3 {
        grid-template-columns: 1fr;
    }

    .form-group--compact {
        grid-column: span 1;
    }

    .form-progress {
        flex-wrap: wrap;
        gap: 10px;
    }

    .progress-line {
        display: none;
    }
}

/* ============================================
   MY LEAVE - ENHANCED LAYOUT
   ============================================ */

/* Container */
.my-leave-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 0 0;
}

/* Header Card */
.my-leave-header {
    background: linear-gradient(135deg, #fff 0%, #fef9f3 100%);
    border: 1px solid #f3e7cd;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(254, 177, 57, 0.08);
}

.my-leave-header-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #fff4e1 0%, #ffe4c4 100%);
    border: 3px solid #f5d6a4;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem !important;
    color: #d97706;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.2);
    margin: 0 auto 20px auto;
}

.my-leave-header-title {
    margin: 0 0 10px 0;
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1f2d3d;
    letter-spacing: -0.01em;
}

.my-leave-header-subtitle {
    margin: 0;
    color: #7c8898;
    font-size: 0.98rem;
    line-height: 1.6;
    font-weight: 500;
}

/* Main Layout - 2 Column */
.my-leave-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    align-items: start;
}

/* Main Content */
.my-leave-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Stats Bar */
.leave-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.stat-item:hover {
    background: #fff8f0;
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.8rem !important;
    color: var(--primary-orange);
    background: white;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1f2d3d;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: #7c8898;
    font-weight: 500;
    margin-top: 2px;
}

/* Loading State */
.leave-loading-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    border: 2px dashed #e0e0e0;
}

.leave-loading-state .material-icons {
    font-size: 56px;
    color: #ddd;
    margin-bottom: 16px;
}

.leave-loading-state p {
    color: #999;
    font-size: 1rem;
}

/* Sidebar */
.my-leave-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}

.sidebar-filter-card,
.sidebar-action-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.sidebar-filter-card h3,
.sidebar-action-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.05rem;
    color: #1f2d3d;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.sidebar-filter-card h3 .material-icons,
.sidebar-action-card h3 .material-icons {
    color: var(--primary-orange);
    font-size: 1.4rem;
}

/* Modern Filter Groups */
.filter-group-modern {
    margin-bottom: 16px;
}

.filter-group-modern label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.filter-group-modern select,
.filter-group-modern input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    background: white;
}

.filter-group-modern select:hover,
.filter-group-modern input:hover {
    border-color: #d0d0d0;
}

.filter-group-modern select:focus,
.filter-group-modern input:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(254, 177, 57, 0.1);
}

/* Filter Actions */
.filter-actions-modern {
    margin-top: 20px;
}

.btn-reset-modern {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-reset-modern:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7a7b);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(149, 165, 166, 0.4);
}

.btn-reset-modern .material-icons {
    font-size: 1.2rem;
}

/* Action Card */
.sidebar-action-card p {
    color: #7c8898;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 16px 0;
}

.btn-download-pdf-modern {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #17a2b8, #138496);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 16px rgba(23, 162, 184, 0.3);
}

.btn-download-pdf-modern:hover {
    background: linear-gradient(135deg, #138496, #117a8b);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.btn-download-pdf-modern .material-icons {
    font-size: 1.4rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .my-leave-wrapper {
        display: flex;
        flex-direction: column;
    }

    /* Sidebar FIRST (top) on mobile */
    .my-leave-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        order: -1;
        margin-bottom: 20px;
    }

    /* Main content SECOND (bottom) */
    .my-leave-main {
        order: 1;
    }

    .sidebar-filter-card,
    .sidebar-action-card {
        flex: 1;
        min-width: 300px;
    }
}

@media (max-width: 992px) {
    .leave-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .my-leave-container {
        padding: 12px 0 0;
        max-width: 100%;
    }

    /* Ensure cards take full width */
    .my-leave-main {
        width: 100%;
    }

    #leaveListContainer {
        width: 100%;
    }

    .my-leave-header {
        padding: 20px 16px;
        margin-bottom: 16px;
    }

    .my-leave-header-icon {
        width: 56px;
        height: 56px;
        font-size: 1.8rem !important;
    }

    .my-leave-header-title {
        font-size: 1.4rem;
    }

    /* Mobile: Filter di atas, lepas tu stats, lepas tu list */
    .my-leave-wrapper {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    /* 1. FILTER CARD (atas sekali) */
    .my-leave-sidebar {
        order: -2;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 0;
        width: 100%;
    }

    .sidebar-filter-card {
        order: -2;
        padding: 16px;
    }

    .sidebar-filter-card h3 {
        font-size: 1rem;
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .filter-group-modern {
        margin-bottom: 12px;
    }

    .filter-group-modern select,
    .filter-group-modern input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    /* 2. STATS BAR (tengah) */
    .leave-stats-bar {
        order: -1;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 12px;
        margin-bottom: 0;
    }

    .stat-item {
        padding: 12px;
        gap: 8px;
    }

    .stat-icon {
        width: 36px;
        height: 36px;
        font-size: 1.3rem !important;
    }

    .stat-value {
        font-size: 1.2rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    /* 3. MAIN CONTENT (senarai cuti) */
    .my-leave-main {
        order: 0;
    }

    /* 4. EKPORT CARD (bawah sekali) */
    .sidebar-action-card {
        order: 1;
        padding: 16px;
    }

    .sidebar-action-card h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .sidebar-action-card p {
        font-size: 0.85rem;
        margin-bottom: 12px;
    }

    .btn-download-pdf-modern {
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .my-leave-container {
        padding: 10px;
    }

    /* Stats bar 2x2 grid */
    .leave-stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px;
    }

    .stat-item {
        padding: 10px 8px;
        flex-direction: column;
        text-align: center;
        gap: 6px;
    }

    .stat-icon {
        width: 32px;
        height: 32px;
        font-size: 1.2rem !important;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .my-leave-header {
        padding: 16px 12px;
    }

    .my-leave-header-title {
        font-size: 1.25rem;
    }

    .my-leave-header-subtitle {
        font-size: 0.85rem;
    }

    /* Cards lebih compact */
    .sidebar-filter-card,
    .sidebar-action-card {
        padding: 14px;
        border-radius: 12px;
    }
}

/* ============================================
   MY LEAVE - MOBILE ORDER FIX
   ============================================ */

/* Mobile layout - enforce proper order */
@media (max-width: 768px) {

    /* Container flex column */
    .my-leave-wrapper {
        display: flex !important;
        flex-direction: column !important;
    }

    /* 1. Filter Card - TOP */
    .my-leave-sidebar {
        display: flex !important;
        flex-direction: column !important;
        order: -3 !important;
        width: 100% !important;
        margin: 0 0 16px 0 !important;
    }

    .sidebar-filter-card {
        order: -3 !important;
        margin-bottom: 0 !important;
    }

    /* 2. Stats Bar - SECOND */
    .leave-stats-bar {
        order: -2 !important;
        margin-bottom: 16px !important;
    }

    /* 3. Leave List - THIRD */
    .my-leave-main {
        order: -1 !important;
    }

    /* 4. Export Card - BOTTOM */
    .sidebar-action-card {
        order: 1 !important;
        margin-top: 16px !important;
    }
}

/* Extra small screens */
@media (max-width: 380px) {
    .leave-stats-bar {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .stat-item {
        padding: 8px 6px !important;
    }

    .stat-icon {
        width: 28px !important;
        height: 28px !important;
        font-size: 1rem !important;
    }

    .stat-value {
        font-size: 1rem !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
    }
}

/* ============================================
   MY LEAVE - CARD WIDTH FIX
   ============================================ */

/* Ensure cards take full width */
#leaveListContainer {
    width: 100%;
}

#leaveListContainer .leave-card {
    width: 100%;
    box-sizing: border-box;
}

/* Mobile specific fixes */
@media (max-width: 768px) {
    #leaveListContainer {
        padding: 0;
        margin: 0;
    }

    #leaveListContainer .leave-card {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    #leaveListContainer .leave-card {
        padding: 14px;
        margin-bottom: 10px;
    }

    #leaveListContainer .card-body {
        gap: 8px;
    }
}

/* ============================================
   PROFILE PAGE - ENHANCED LAYOUT
   ============================================ */

/* Container */
.profile-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 20px 0 0;
}

/* Header Card */
.profile-header-card {
    background: linear-gradient(135deg, #fff 0%, #fef9f3 100%);
    border: 1px solid #f3e7cd;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(254, 177, 57, 0.1);
    display: flex;
    align-items: center;
    gap: 30px;
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--primary-orange), #e59b2e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
    box-shadow: 0 8px 30px rgba(254, 177, 57, 0.35);
    border: 4px solid white;
}

.profile-avatar-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 32px;
    height: 32px;
    background: #27ae60;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.profile-avatar-badge .material-icons {
    font-size: 16px;
    color: white;
}

.profile-header-info {
    flex: 1;
}

.profile-header-name {
    margin: 0 0 8px 0;
    font-size: 2.2rem;
    font-weight: 800;
    color: #1f2d3d;
    letter-spacing: -0.02em;
}

.profile-header-role {
    margin: 0 0 16px 0;
    font-size: 1.15rem;
    color: var(--primary-orange);
    font-weight: 600;
}

.profile-header-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7c8898;
    font-size: 0.95rem;
    font-weight: 500;
}

.profile-meta-item .material-icons {
    font-size: 1.1rem;
    color: var(--primary-orange);
}

/* Main Layout */
.profile-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    align-items: start;
}

/* Main Content */
.profile-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Profile Section */
.profile-section {
    background: white;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.profile-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f5f5f5;
}

.profile-section-header .material-icons {
    font-size: 1.4rem;
    color: var(--primary-orange);
    background: linear-gradient(135deg, #fff4e1, #ffe4c4);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-section-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1f2d3d;
    flex: 1;
}

.profile-badge-locked,
.profile-badge-editable {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.profile-badge-locked {
    background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
    color: #666;
}

.profile-badge-editable {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
}

/* Grid Layouts */
.profile-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.profile-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* Profile Field */
.profile-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-field--full {
    grid-column: 1 / -1;
}

.profile-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-field--locked label {
    color: #888;
}

.profile-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-input-wrapper .material-icons {
    position: absolute;
    left: 14px;
    color: #aaa;
    font-size: 1.2rem;
    pointer-events: none;
}

.profile-input-wrapper input,
.profile-input-wrapper textarea {
    width: 100%;
    padding: 14px 14px 14px 44px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    font-family: inherit;
}

.profile-input-wrapper input:focus,
.profile-input-wrapper textarea:focus {
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(254, 177, 57, 0.1);
}

.profile-input-wrapper input:disabled {
    background: #f8f9fa;
    color: #888;
    cursor: not-allowed;
}

.profile-input-wrapper--textarea {
    align-items: flex-start;
}

.profile-input-wrapper--textarea .material-icons {
    top: 14px;
}

.profile-input-wrapper textarea {
    resize: vertical;
    min-height: 80px;
}

/* Save Button */
.btn-profile-save {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-orange), #e59b2e);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(254, 177, 57, 0.3);
}

.btn-profile-save:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(254, 177, 57, 0.4);
}

/* Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 90px;
}

.profile-sidebar-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
}

.profile-sidebar-card h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: #1f2d3d;
    margin: 0 0 16px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f5f5f5;
}

.profile-sidebar-card h4 .material-icons {
    color: var(--primary-orange);
    font-size: 1.3rem;
}

.profile-sidebar-card--info {
    background: linear-gradient(135deg, #fff8f0, #fff);
    border-color: #ffe4c4;
}

.profile-sidebar-card--info h4 .material-icons {
    color: #e67e22;
}

.profile-sidebar-card--info p {
    margin: 0 0 10px 0;
    color: #7c8898;
    font-size: 0.9rem;
    line-height: 1.6;
}

.profile-sidebar-card--info p:last-child {
    margin-bottom: 0;
}

/* Status Item */
.profile-status-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    font-weight: 600;
    color: #27ae60;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #27ae60;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Info Row */
.profile-info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.profile-info-row:last-child {
    border-bottom: none;
}

.profile-info-row span:first-child {
    color: #888;
}

.profile-info-value {
    font-weight: 600;
    color: #1f2d3d;
}

/* Mini Stat */
.profile-stat-mini {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 10px;
}

.profile-stat-mini:last-child {
    margin-bottom: 0;
}

.profile-stat-mini .material-icons {
    width: 44px;
    height: 44px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-orange);
    font-size: 1.4rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.profile-stat-mini div {
    display: flex;
    flex-direction: column;
}

.profile-stat-mini span:first-child {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2d3d;
}

.profile-stat-mini small {
    color: #888;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .profile-wrapper {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .profile-sidebar-card {
        flex: 1;
        min-width: 280px;
    }
}

@media (max-width: 992px) {
    .profile-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .profile-container {
        padding: 15px 0 0;
    }

    .profile-header-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
        gap: 20px;
    }

    .profile-avatar {
        width: 90px;
        height: 90px;
        font-size: 2.5rem;
    }

    .profile-header-name {
        font-size: 1.6rem;
    }

    .profile-header-meta {
        justify-content: center;
    }

    .profile-section {
        padding: 20px;
    }

    .profile-grid-3,
    .profile-grid-2 {
        grid-template-columns: 1fr;
    }

    .profile-sidebar {
        flex-direction: column;
    }

    .profile-sidebar-card {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .profile-header-name {
        font-size: 1.4rem;
    }

    .profile-header-role {
        font-size: 1rem;
    }

    .profile-section-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    .profile-badge-locked,
    .profile-badge-editable {
        margin-left: auto;
    }
}


/* =========================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ========================================= */

/* Reduce heavy effects on mobile */
@media (max-width: 768px) {

    /* Disable backdrop blur on mobile (GPU intensive) */
    .glass-list-card,
    .glass-panel,
    .glass-search-box,
    .glass-filter-select,
    .glass-input,
    .sidebar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    /* Simpler shadows */
    .glass-list-card {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
        transform: none !important;
        transition: none !important;
    }

    .glass-list-card:hover {
        transform: none !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    }

    /* Disable hover effects on touch devices */
    .btn-glass:hover,
    .btn-glass-sm:hover {
        transform: none !important;
    }

    /* Reduce animation complexity */
    @keyframes slideInRight {
        from {
            opacity: 0;
        }

        to {
            opacity: 1;
        }
    }

    @keyframes slideOutRight {
        from {
            opacity: 1;
        }

        to {
            opacity: 0;
        }
    }

    /* Optimize images */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Reduce padding for more content space */
    .glass-list-card {
        padding: 15px;
        margin-bottom: 12px;
    }

    /* Faster transitions */
    * {
        transition-duration: 0.15s !important;
    }
}

/* Touch action optimization */
@media (pointer: coarse) {

    /* Larger touch targets */
    button,
    .btn-glass,
    .btn-glass-sm,
    input[type="checkbox"],
    input[type="radio"] {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch */
    *:hover {
        transform: none !important;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}