/* ================================
   FULLSCREEN LOADER OVERLAY
================================ */
#loader {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

/* Container Loader */
.loader-content {
    text-align: center;
}

/* Spinner Modern */
.spinner {
    width: 60px;
    height: 60px;
    border: 5px solid #e5e7eb;
    border-top: 5px solid #1a3e6a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

/* Loading Text */
.loader-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #1a3e6a;
    letter-spacing: 0.5px;
}

/* Animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ================================
   GLOBAL LAYOUT
================================ */
html, body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    background-color: #f4f6f9;
}

.headerMenu {
    color: #153656;
}

.container-scroller {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-body-wrapper {
    flex: 1;
    display: flex;
}

.main-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-wrapper {
    flex: 1;
    background: #f4f6f9;
    padding: 30px;
}

/* ================================
   SIDEBAR
================================ */
.sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
}

.sidebar .nav-item {
    margin: 6px 12px;
}

.sidebar .nav-link {
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 500;
    color: #374151;
    transition: all 0.3s ease;
    font-size: 16px;
}


/*.sidebar .nav-item.active .nav-link {
    background: linear-gradient(135deg, #1a3e6a, #2c5aa0);
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}*/

.sidebar .nav .nav-item.active {
    background: linear-gradient(135deg, #1a3e6a, #2c5aa0) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/*.sidebar .nav .nav-item:hover {
    background: #060e17;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}*/

.sidebar .nav-item.active i,
.sidebar .nav-item.active .menu-title {
    color: #ffffff !important;
}

.sidebar .nav .nav-item.active > .nav-link .menu-title {
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

.sidebar .nav .nav-item > .nav-link .menu-title {
    color: #295698;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
}

/* ================================
   NAVBAR
================================ */
.navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

/* ================================
   PAGE TITLE
================================ */
.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a3e6a;
}

/* ================================
   DASHBOARD CARD
================================ */
.dashboard-card {
    width: 420px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a, #1a3e6a);
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-body {
    padding: 24px;
}

.dashboard-card h4 {
    font-weight: 600;
}

.dashboard-card h2 {
    font-weight: 700;
    margin: 10px 0;
}

/* ================================
   FOOTER
================================ */
.footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    padding: 15px 0;
    font-size: 12px;
}

/* ================================
   MODERN PAGE HEADER
================================ */
.page-header-modern {
    background: linear-gradient(135deg, #1a3e6a, #2c5aa0);
    border-radius: 16px;
    padding: 20px 25px;
    margin-bottom: 25px;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Header Content */
.page-header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Icon Box */
.page-header-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #0f172a, #1a3e6a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Title */
.page-header-text .page-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

/* Subtitle */
.page-header-text .page-subtitle {
    font-size: 14px;
    margin: 2px 0 0;
    color: rgba(255, 255, 255, 0.85);
}


/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    .dashboard-card {
        width: 100%;
    }

    .content-wrapper {
        padding: 20px;
    }

    .page-title {
        font-size: 20px;
    }

    .page-header-modern {
        padding: 15px 18px;
    }

    .page-header-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .page-header-text .page-title {
        font-size: 20px;
    }

    .page-header-text .page-subtitle {
        font-size: 12px;
    }
}


