* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f7fa;
    color: #212529;
}

/* =========================================================
   LOGIN
========================================================= */

.login-page {
    min-height: 100vh;
    background: linear-gradient(
        135deg,
        #f8f9fa 0%,
        #e9f1ff 100%
    );

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
}

.login-wrapper {
    width: 100%;
    max-width: 430px;
}

.login-card {
    background: #fff;
    border-radius: 18px;
    padding: 35px;

    box-shadow:
        0 15px 45px rgba(0, 0, 0, .10);
}

.login-logo {
    width: 70px;
    height: 70px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: #0d6efd;
    color: #fff;

    font-size: 32px;
}

.login-title {
    font-weight: 700;
    letter-spacing: 1px;
}

.login-btn {
    height: 48px;
    font-weight: 600;
}

/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: 260px;

    background: #fff;

    border-right: 1px solid #e7eaf0;

    z-index: 1040;

    overflow-y: auto;

    transition:
        transform .25s ease,
        width .25s ease;
}

.sidebar-brand {
    height: 74px;

    display: flex;
    align-items: center;

    padding: 0 20px;

    border-bottom: 1px solid #edf0f4;
}

.brand-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #0d6efd;
    color: #fff;

    font-size: 20px;
}

.brand-text {
    margin-left: 12px;
}

.brand-name {
    font-size: 19px;
    font-weight: 800;

    line-height: 20px;
}

.brand-subtitle {
    color: #8a93a2;

    font-size: 10px;

    font-weight: 600;

    letter-spacing: .8px;
}

.sidebar-menu {
    padding: 15px 12px 30px;
}

.menu-section {
    padding: 18px 12px 7px;

    color: #98a1af;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1px;
}

.sidebar-link {
    display: flex;
    align-items: center;

    width: 100%;

    padding: 11px 13px;

    margin: 2px 0;

    border-radius: 9px;

    color: #566170;

    text-decoration: none;

    font-size: 14px;

    transition:
        background .15s ease,
        color .15s ease;
}

.sidebar-link i {
    width: 24px;

    margin-right: 9px;

    font-size: 17px;

    text-align: center;
}

.sidebar-link:hover {
    background: #f1f5ff;
    color: #0d6efd;
}

.sidebar-link.active {
    background: #eaf2ff;
    color: #0d6efd;

    font-weight: 600;
}

/* =========================================================
   MAIN
========================================================= */

.main-wrapper {
    margin-left: 260px;

    min-height: 100vh;

    display: flex;
    flex-direction: column;

    transition: margin-left .25s ease;
}

.top-header {
    height: 74px;

    background: #fff;

    border-bottom: 1px solid #e7eaf0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 25px;

    position: sticky;
    top: 0;

    z-index: 1030;
}

.sidebar-toggle {
    width: 42px;
    height: 42px;

    border: 0;

    color: #566170;

    font-size: 24px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: #f1f3f6;
}

.page-header-title {
    margin-left: 8px;

    display: flex;
    flex-direction: column;
}

.page-header-title strong {
    font-size: 17px;
}

.header-right {
    display: flex;
    align-items: center;

    gap: 18px;
}

.header-date {
    color: #6c757d;

    font-size: 13px;

    align-items: center;
}

.user-menu {
    border: 0;

    display: flex;
    align-items: center;

    padding: 4px 0;

    background: transparent;
}

.user-avatar {
    width: 40px;
    height: 40px;

    border-radius: 50%;

    background: #eaf2ff;
    color: #0d6efd;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    font-size: 18px;
}

.user-avatar img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.user-info {
    margin-left: 10px;

    display: flex;
    flex-direction: column;

    text-align: left;
}

.user-info strong {
    font-size: 13px;
}

.user-info small {
    color: #8a93a2;

    font-size: 11px;
}

.main-content {
    width: 100%;

    padding: 25px;

    flex: 1;
}

.main-footer {
    min-height: 55px;

    background: #fff;

    border-top: 1px solid #e7eaf0;

    padding: 15px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: 12px;

    color: #687386;
}

/* =========================================================
   SIDEBAR MOBILE
========================================================= */

.sidebar-overlay {
    display: none;

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .35);

    z-index: 1035;
}

@media (max-width: 991.98px) {

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar-overlay.show {
        display: block;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .top-header {
        padding: 0 15px;
    }

    .main-content {
        padding: 18px;
    }

}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 576px) {

    .top-header {
        height: 65px;
    }

    .main-content {
        padding: 14px;
    }

    .main-footer {
        padding: 12px 15px;

        flex-direction: column;

        gap: 5px;

        text-align: center;
    }

    .login-page {
        padding: 15px;
    }

    .login-card {
        padding: 25px 20px;
    }

}