/* ==========================================================================
   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: 440px;
    width: 90%;
    padding: 2rem !important;
    border-radius: 14px !important;
    /*border-top: 16px solid #141311 !important;*/
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.15) !important;
}

@media (min-width: 768px) {
    .login-card {
        max-width: 470px;
        width: 55%;
    }
}

@media (min-width: 1200px) {
    .login-card {
        max-width: 520px;
        width: 34%;
    }
}

.system-logo-avatar {
    width: 66px; 
    height: 66px; 
    background-color: #ebf8ff;
    border-radius: 50%;
}

.btn-primary {
    background-color: #162C5B !important;
    border-color: #162C5B !important;
}

.btn-primary:hover {
    background-color: #0f1f3f !important;
    border-color: #0f1f3f !important;
}

.btn-primary:disabled {
    background-color: #162C5B !important;
    border-color: #162C5B !important;
    opacity: 0.7;
}

.login-card .form-control {
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
}

.login-card .input-group-text {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
}

.login-card .form-label {
    font-size: 0.88rem !important;
    margin-bottom: 0.3rem;
}

.login-card .btn-primary {
    padding: 0.6rem 1rem !important;
    font-size: 0.95rem;
}

.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 */
.dashboard-runtime-body {
    height: 100vh;
    overflow: hidden;
}

.wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    align-items: stretch;
    overflow: hidden;
}

#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: #1a202c !important;
    height: 100vh;
    position: sticky;
    top: 0;
    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%;
    height: 100vh;
    overflow-y: auto;
    background-color: #e2e8f0 !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; }
.metric-icon-box { width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.bg-primary-light { background-color: rgba(2, 117, 216, 0.12); }
.bg-warning-light { background-color: rgba(240, 173, 78, 0.12); }
.bg-success-light { background-color: rgba(92, 184, 92, 0.12); }
.bg-danger-light { background-color: rgba(220, 53, 69, 0.12); }
.bg-info-light { background-color: rgba(23, 162, 184, 0.12); }
.fw-extrabold { font-weight: 800; }

.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) {
    .container.d-flex.justify-content-center.align-items-center.min-vh-100 {
        align-items: flex-start !important;
        padding-top: 1.4rem;
        padding-bottom: 1.4rem;
    }

    .login-card {
        max-width: 100%;
        width: 100%;
        padding: 1.4rem !important;
        border-radius: 14px !important;
    }

    .login-card .form-control,
    .login-card .input-group-text {
        font-size: 0.95rem;
        padding-top: 0.6rem;
        padding-bottom: 0.6rem;
    }

    .login-card .btn-primary {
        padding: 0.7rem 1rem !important;
        font-size: 0.92rem;
    }

    #connectivity-badge {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    #sidebar {
        margin-left: -260px;
        position: fixed;
        height: 100vh;
    }
    #sidebar.mobile-open {
        margin-left: 0;
    }
}