/* ==========================================================================
   BOLGATANGA TECHNICAL UNIVERSITY HRMIS - CORE PLATFORM SYSTEM STYLES
   ========================================================================== */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
    overflow-x: hidden;
    position: relative;
}

#background-overlay {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    z-index: -1;
    transition: background 1s ease-in-out;
}

/* --- AUTHENTICATION APPLICATION INTERFACE MODULES --- */
.login-card {
    max-width: 435px;
    width: 100%;
    padding: 2.3rem !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.15) !important;
}

.system-logo-avatar {
    width: 66px; 
    height: 66px; 
    background-color: #ebf8ff;
    border-radius: 50%;
}

.btn-primary {
    background-color: #2b6cb0 !important;
    border-color: #2b6cb0 !important;
}

.btn-primary:hover {
    background-color: #1a365d !important;
    border-color: #1a365d !important;
}

.login-card .form-control {
    padding: 0.65rem 1rem;
    font-size: 1.05rem;
}

.login-card .input-group-text {
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
}

.login-card .form-label {
    font-size: 0.95rem !important;
    margin-bottom: 0.4rem;
}

.login-card .btn-primary {
    padding: 0.85rem 1rem !important;
    font-size: 0.98rem;
}

.login-card h4 {
    font-size: 1.35rem !important;
}

#connectivity-badge {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
#connectivity-badge.online { background-color: #c6f6d5; color: #22543d; }
#connectivity-badge.offline { background-color: #fed7d7; color: #742a2a; }

/* --- ADMINISTRATIVE CORE WRAPPER LAYOUT ARCHITECTURE --- */
/* Changed from #wrapper to .wrapper to perfectly map your header.php layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    overflow-x: hidden;
}

#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: #1a202c !important;
    min-height: 100vh;
    transition: all 0.25s ease-in-out;
    z-index: 1030;
}

/* Normalized Unified Collapse Mapping Selector Hook */
#sidebar.collapsed {
    margin-left: -260px;
}

#sidebar .sidebar-header {
    background: #141923;
}

#sidebar ul.components {
    border-bottom: 1px solid #2d3748;
}

#sidebar ul li a {
    color: #cbd5e0;
    transition: all 0.2s ease;
    font-size: 0.92rem;
    font-weight: 500;
}

#sidebar ul li a:hover {
    background: #2d3748;
    color: #ffffff;
}

#sidebar ul li a.bg-primary {
    background-color: #2b6cb0 !important;
}

#content {
    width: 100%;
    min-height: 100vh;
    background-color: #f7fafc !important;
    transition: all 0.25s ease-in-out;
}

/* --- CORE RUNTIME UTILITIES & DESIGN TOKENS --- */
.stat-card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.stat-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

.text-xs { font-size: 0.72rem !important; }
.tracking-wider { letter-spacing: 0.05em; }

.bg-blue-light { background-color: #ebf8ff; color: #2b6cb0; }
.bg-success-light { background-color: #f0fff4; color: #2f855a; }
.bg-danger-light { background-color: #fff5f5; color: #c53030; }
.bg-warning-light { background-color: #fffdf5; color: #d69e2e; }
.bg-indigo-light { background-color: #ebf4ff; color: #4c51bf; }
.bg-teal-light { background-color: #e6fffa; color: #319795; }
.text-indigo { color: #4c51bf; }
.text-teal { color: #319795; }

/* --- RESPONSIVE FLUID LAYOUT OVERRIDE BREAKPOINTS --- */
@media (max-width: 768px) {
    #sidebar {
        margin-left: -260px;
        position: fixed;
        height: 100vh;
    }
    #sidebar.mobile-open {
        margin-left: 0;
    }
}