body {
    background: linear-gradient(135deg, #e4eefe 0%, #f0f4ff 50%, #e2e8f8 100%);
    min-height: 100vh;
    font-family: system-ui, -apple-system, sans-serif;
    color: #334155;
}
/* Login Page Specific Styles */
.login-card {
    margin-top: 5rem;
    overflow: hidden;
}

.login-left {
    background: linear-gradient(135deg, #003771 0%, #003771 100%);
    color: #ffffff;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-left p {
    color: rgba(255, 255, 255, 0.8) !important;
}

.login-right {
    padding: 3rem 2.5rem;
    background: #ffffff;
}

/* Sidebar Styles */
#sidebar {
    min-height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 2px 0 15px rgba(0,0,0,0.02);
    width: 240px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    border-right: 1px solid rgba(255, 255, 255, 0.6);
}
#sidebar .brand {
    padding: 1.1rem 0.1rem;/*padding: 1.25rem 1.5rem;*/
    font-weight: 700;
    color: #448AFF;
    font-size: 1.15rem;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.sidebar-nav {
    padding: 1rem 0;
}
.sidebar-nav .nav-link {
    color: #64748b;
    padding: 0.7rem 1.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}
.sidebar-nav .nav-link i {
    margin-right: 12px;
    font-size: 0.95rem;
}
.sidebar-nav .nav-link:hover, .sidebar-nav .nav-link.active {
    color: #448AFF;
    background-color: rgba(68, 138, 255, 0.08);
}

/* Main Content Area */
.main-content {
    margin-left: 240px;
    padding: 1.5rem 2rem;
}

/* Top Navbar */
.top-navbar {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Allow dropdown to break outside the navbar bounds */
.top-navbar {
    overflow: visible !important;
    position: relative;
    z-index: 100;
}

.main-content {
    overflow: visible !important;
}

/* Ensure dropdown menu floats on top of all page elements */
.dropdown-menu {
    z-index: 9999 !important;
}

/* Glassmorphism Cards */
.card {
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px);
}

/* Quick Action Tiles */
.quick-action-item {
    text-align: center;
    text-decoration: none;
    color: #475569;
    transition: transform 0.2s ease;
    display: block;
}
.quick-action-item:hover {
    transform: translateY(-3px);
    color: #448AFF;
}
.quick-action-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px auto;
    font-size: 1.1rem;
}

/* Attendance Timer Widget */
.attendance-timer-circle {
    width: 140px;
    height: 140px;
    border: 6px solid #f1f5f9;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* Mood Check-in Card Styles */
.mood-card {
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03) !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(8px);
}
.mood-option {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.04);
    border-radius: 12px;
    padding: 12px 8px;
    text-align: center;
    text-decoration: none;
    color: #475569;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.mood-option:hover {
    transform: translateY(-3px);
    border-color: #448AFF;
    box-shadow: 0 6px 15px rgba(68, 138, 255, 0.1);
    color: #448AFF;
}
.avatar-overlap img, .avatar-overlap div {
    margin-left: -10px;
    border: 2px solid #ffffff;
}
.avatar-overlap *:first-child {
    margin-left: 0;
}

body {
    background-color: #f4f6fb;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333333;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    border: none;
}

.stat-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    height: 100%;
}

.stat-card.alert-bg {
    background-color: #fff5f5;
}

.stat-card.warning-bg {
    background-color: #fffbeb;
}

.badge-punctual {
    background-color: #d1fae5;
    color: #065f46;
    padding: 6px 12px;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.78rem;
    display: inline-block;
}

/* Schedule Grid Styles */
.schedule-grid {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
}

.schedule-header-cell {
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid #e5e7eb;
    background-color: #fafafa;
}

.schedule-body-cell {
    min-height: 90px;
    padding: 12px 8px;
    border-right: 1px solid #e5e7eb;
    background-color: #ffffff;
    position: relative;
}

.schedule-body-cell.active-day {
    background-color: #fefce8;
}

.schedule-badge {
    background-color: #e0e7ff;
    color: #3730a3;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 3px solid #4f46e5;
    text-align: center;
}
/* Greyed-out locked tile styling */
.tile.locked {
    opacity: 0.5;
    filter: grayscale(100%);
    cursor: not-allowed;
    pointer-events: none;
}

.tile.locked .open {
    background: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff;
}

/* Force tiny inline padlock size */
.tile h3 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.tile h3 svg.small-padlock {
    width: 13px !important;
    height: 13px !important;
    min-width: 13px;
    min-height: 13px;
    fill: #6c757d;
    vertical-align: middle;
    display: inline-block;
}