
* { font-size:13px; }

/* ===============================
   SIDEBAR BASE DESIGN
================================ */
.premium-sidebar {
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    background: linear-gradient(180deg, #0b2340 0%, #071428 100%);
    color: #e6eef8;
    padding: 18px 14px;
    z-index: 3000;
    overflow-y: auto;

    /* Slide-in animation */
    transform: translateX(-260px);
    transition: transform .35s ease, box-shadow .35s ease;
}
.premium-sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 16px rgba(0,0,0,0.35);
}

/* Avatar */
.avatar-sm {
    width:36px; height:36px; border-radius:50%; 
    object-fit:cover; 
    border:2px solid rgba(255,255,255,0.08);
}

/* Sidebar Navigation Links */
.premium-sidebar .nav-link {
    color: #dbe9ff;
    display:flex;
    align-items:center;
    gap:8px;
    padding:10px 10px;
    border-radius:8px;
}
.premium-sidebar .nav-link:hover { 
    background: rgba(255,255,255,0.08); 
    color:#fff; 
}
.premium-sidebar .nav-link.active { 
    background: linear-gradient(90deg,#0d6efd,#0062cc); 
    color:#fff; 
    font-weight:700; 
}

/* ===============================
   TOP BAR
================================ */
.topbar {
    position: fixed;
    left: 250px;
    right: 0;
    height: 60px;
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.5);
    display:flex;
    align-items:center;
    padding:0 20px;
    z-index:1020;
}

/* ===============================
   MOBILE OVERLAY
================================ */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(2px);
    z-index: 2500;
}
.mobile-overlay.show { display: block; }

/* ===============================
   MOBILE TOGGLE BUTTON
================================ */
#mobileMenuToggle {
    background: #0d6efd !important;
    color: #fff;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 20px;
    border: none;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 2600;
}

/* ===============================
   CONTENT WRAPPER FIX FOR MOBILE
================================ */
#content-wrapper {
    margin-left:250px;
    padding:25px 15px 15px 10px;
}
@media (max-width: 992px) {
    #content-wrapper { margin-left:0 !important; }
}

/* ===============================
   MOBILE BOTTOM NAVIGATION
================================ */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0; right: 0;
    height: 60px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid #ccc;
    display: flex;
    justify-content: space-around;
    align-items:center;
    z-index: 2600;
}

.mobile-bottom-nav a {
    text-decoration: none;
    flex:1;
    text-align:center;
    font-size:12px;
    color:#555;
    padding-top:4px;
}
.mobile-bottom-nav a i {
    font-size:20px;
    display:block;
}
.mobile-bottom-nav a.active {
    color:#0d6efd;
    font-weight:700;
}

/* ===============================
   FLOATING ATTENDANCE BUTTON (FAB)
================================ */
.fab-attendance {
    position: fixed;
    bottom: 80px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius:50%;
    background:#0d6efd;
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    box-shadow:0 6px 16px rgba(0,0,0,0.22);
    z-index: 2700;
    transition:0.25s ease;
}
.fab-attendance:hover {
    transform:scale(1.1);
    background:#0056d2;
}

@media (min-width:992px) {
    .premium-sidebar {
        transform:none !important;
        box-shadow:none !important;
    }
    #mobileMenuToggle,
    .mobile-bottom-nav,
    .fab-attendance {
        display:none !important;
    }
}


/* ===============================
   MOBILE TOPBAR
================================ */
.mobile-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    background: #0b2340;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 14px;
    z-index: 2800;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.mobile-topbar .mobile-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    background: #0d6efd;
}

.mobile-topbar .mobile-title {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    margin-left: 10px;
}

.topbar-left {
    display: flex;
    align-items: center;
}

/* Toggle button (right side) */
.mobile-toggle-btn {
    background: #0d6efd;
    border: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 20px;
}

/* Push content down so it's not hidden behind topbar */
@media (max-width: 992px) {
    #content-wrapper {
        margin-top: 60px !important;
    }
}


/* Dropdown base */
.notif-dropdown {
    position:absolute;
    right:0;
    top:30px;
    width:340px;
    background:#fff;
    border-radius:10px;
    box-shadow:0 10px 30px rgba(0,0,0,0.25);
    display:none;
    flex-direction:column;
    overflow:hidden;
    z-index:9999;
    animation: slideDown .25s ease;
}

/* Header */
.notif-header {
    padding:10px;
    font-weight:700;
    display:flex;
    justify-content:space-between;
    background:#f5f5f5;
}
.notif-header button {
    border:none;
    background:none;
    color:#dc3545;
    font-size:12px;
    cursor:pointer;
}

/* List */
#notifList {
    list-style:none;
    margin:0;
    padding:0;
    max-height:320px;
    overflow-y:auto;
}
#notifList li {
    padding:10px;
    border-bottom:1px solid #eee;
    cursor:pointer;
}
#notifList li.unread {
    background:#eef5ff;
    font-weight:600;
}

/* Footer */
.notif-footer {
    text-align:center;
    padding:8px;
    background:#f5f5f5;
}

/* Slide animation */
@keyframes slideDown {
    from { opacity:0; transform:translateY(-10px); }
    to   { opacity:1; transform:translateY(0); }
}

/* 📱 Mobile full screen */
@media (max-width: 768px) {
    .notif-dropdown {
        position:fixed;
        top:0;
        right:0;
        left:0;
        bottom:0;
        width:100%;
        border-radius:0;
    }
}


/* Notification swipe */
.notif-item {
    transition: transform 0.25s ease, opacity 0.25s ease;
    touch-action: pan-y;
}

.notif-item.swiping {
    transition: none;
}

.notif-item.dismissed {
    transform: translateX(120%);
    opacity: 0;
    height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}


.tooltip-inner {
    white-space: pre-line; /* allows line breaks */
    font-size: 12px;
    text-align: left;
}