* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
}

:root {
    --blue: #1f4eaa;
    --blue-dark: #163f91;
    --blue-deep: #0f347d;
    --light-bg: #f8fbff;
    --border: #dce6f4;
    --text-blue: #17325f;
    --shadow: 0 12px 34px rgba(21, 59, 135, 0.15);
}

body {
    background:
        radial-gradient(circle at 24px 24px, rgba(31, 78, 170, 0.055) 2px, transparent 2px) 0 0/58px 58px,
        radial-gradient(circle at 12px 42px, rgba(31, 78, 170, 0.035) 1.5px, transparent 1.5px) 0 0/58px 58px,
        #f8fbff;
}

/* ================= TOP BAR ================= */

.el-topbar {
    height: 58px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 18px;
    gap: 14px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.el-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--blue);
    font-weight: 900;
}

.el-logo .mark {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(180deg, #2b61cf, #1f4eaa);
    color: #ffffff;
    font-size: 22px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.el-logo .brand-text {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.hamb {
    margin-left: 10px;
    border: 0;
    background: none;
    color: #111111;
    font-size: 30px;
    cursor: pointer;
    line-height: 1;
}

.top-spacer {
    flex: 1;
}

.login-join {
    border: 2px solid var(--blue);
    border-radius: 15px;
    padding: 7px 18px;
    color: var(--blue);
    font-size: 15px;
    font-weight: 900;
    background: #ffffff;
}

.profile-dot {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 23px;
}

.down {
    color: var(--blue);
    font-size: 22px;
    font-weight: 800;
}

/* ================= LOGIN PAGE SMALL PREMIUM ================= */

.el-auth-wrap {
    min-height: calc(100vh - 58px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 38px 16px 20px;
}

.el-auth-card {
    width: 640px;
    max-width: 92vw;
    min-height: 250px;
    height: auto;
    border-radius: 22px;
    overflow: hidden;
    background: #ffffff;
    display: grid;
    grid-template-columns: 0.88fr 1fr;
    box-shadow: 0 15px 38px rgba(14, 44, 98, 0.16);
    border: 1px solid rgba(220, 230, 244, 0.9);
}

.el-auth-left {
    background: linear-gradient(180deg, #1f4eaa 0%, #153b88 100%);
    color: #ffffff;
    padding: 26px 24px;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.el-auth-left h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.18;
    font-weight: 950;
    letter-spacing: 0.2px;
}

.el-auth-left p {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: #eef5ff;
}

.el-auth-right {
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.el-auth-right h2 {
    margin: 0 0 15px;
    font-size: 25px;
    font-weight: 950;
    color: #111111;
}

.el-input {
    width: 100%;
    height: 38px;
    border: 1px solid #d2dced;
    border-radius: 12px;
    padding: 0 13px;
    font-size: 14px;
    outline: none;
    background: #f1f6ff;
    margin-bottom: 11px;
}

.el-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(31, 78, 170, 0.10);
    background: #ffffff;
}

.el-btn {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(180deg, #1f4eaa, #173b86);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(31, 78, 170, 0.18);
}

.el-btn:hover {
    background: linear-gradient(180deg, #245bc2, #173b86);
}

.join-text {
    text-align: center;
    margin: 11px 0 0;
    color: #234c94;
    font-weight: 800;
    font-size: 12.5px;
    line-height: 1.4;
}

.alert-box {
    background: #ffe6e6;
    color: #9b1c1c;
    border: 1px solid #ffbdbd;
    padding: 9px 11px;
    border-radius: 11px;
    margin-bottom: 11px;
    font-weight: 700;
    font-size: 12.5px;
}

/* ================= MAIN LAYOUT ================= */

.el-layout {
    display: flex;
    min-height: calc(100vh - 58px);
}

/* ================= SIDEBAR ================= */

.el-sidebar {
    width: 286px;
    flex: 0 0 286px;
    min-height: calc(100vh - 58px);
    background: var(--blue);
    color: #ffffff;
    padding: 16px 0 26px;
}

.admin-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 22px 18px;
}

.admin-profile img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    border: 3px solid #d8e6ff;
    object-fit: cover;
    background: #ffffff;
}

.admin-profile b {
    display: block;
    font-size: 17px;
    color: #ffffff;
    font-weight: 900;
}

.admin-profile small {
    color: #edf4ff;
    font-size: 13px;
}

.line {
    height: 1px;
    background: rgba(255, 255, 255, 0.35);
    margin: 4px 12px 20px;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 13px 16px;
    padding: 12px 17px;
    border-radius: 16px;
    color: #ffffff;
    font-size: 17px;
    font-weight: 850;
    transition: 0.18s ease;
}

.side-link i {
    font-size: 25px;
}

.side-link:hover,
.side-link.active {
    background: #ffffff;
    color: var(--blue);
    box-shadow: var(--shadow);
}

/* ================= CONTENT ================= */

.el-content {
    flex: 1;
    padding: 26px 30px;
}

/* ================= DASHBOARD CARDS ================= */

.dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-bottom: 34px;
}

.dash-card {
    min-height: 110px;
    border-radius: 22px;
    padding: 22px 26px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.dash-card.blue {
    background: var(--blue);
    color: #ffffff;
}

.dash-card.white {
    background: #ffffff;
    color: #111111;
}

.dash-card h3 {
    margin: 0 0 8px;
    font-size: 26px;
    font-weight: 850;
}

.dash-card p {
    margin: 0;
    font-size: 17px;
}

.count-box {
    font-size: 36px;
    font-weight: 850;
    margin-top: 10px;
}

/* ================= FEATURE BOXES ================= */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(230px, 1fr));
    gap: 32px 38px;
    max-width: 980px;
}

.feature-box {
    background: var(--blue);
    color: #ffffff;
    min-height: 116px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 22px 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.feature-box h3 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 900;
}

.feature-box p {
    margin: 0;
    font-size: 16px;
}

.feature-box .line {
    width: 100%;
    margin: 8px 0 10px;
    background: rgba(255, 255, 255, 0.45);
}

.feature-box.active {
    background: #ffffff;
    color: var(--blue);
    border: 7px solid rgba(31, 78, 170, 0.78);
    outline: 9px solid rgba(91, 135, 222, 0.32);
}

.feature-box.active .line {
    background: rgba(0, 0, 0, 0.22);
}

/* ================= FORMS / TABLES ================= */

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.search-add {
    display: flex;
    gap: 16px;
    align-items: center;
}

.search-box {
    width: 280px;
    height: 52px;
    border: 2px solid #666666;
    border-radius: 14px;
    padding: 0 16px;
    font-size: 18px;
    background: #ffffff;
}

.add-btn {
    background: var(--blue);
    color: #ffffff;
    border: 0;
    border-radius: 14px;
    height: 52px;
    padding: 0 26px;
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
}

.table-clean {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.table-clean thead th {
    text-align: left;
    color: #111111;
    font-size: 21px;
    padding: 0 12px 6px 0;
}

.table-clean tbody td {
    padding: 5px 12px 5px 0;
    font-size: 18px;
}

.switch {
    width: 70px;
    height: 30px;
    background: var(--blue);
    border-radius: 999px;
    position: relative;
    display: inline-block;
}

.switch:after {
    content: "";
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
    top: 2px;
    right: 2px;
}

.action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: #ffffff;
    font-size: 18px;
    margin-right: 8px;
}

.card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow);
}

/* ================= MOBILE ================= */

@media(max-width: 900px) {
    .el-topbar {
        height: 56px;
        padding: 0 12px;
    }

    .el-logo .mark {
        width: 34px;
        height: 34px;
        font-size: 20px;
    }

    .el-logo .brand-text {
        font-size: 20px;
    }

    .hamb {
        font-size: 26px;
        margin-left: 4px;
    }

    .login-join {
        padding: 6px 13px;
        font-size: 13px;
    }

    .el-auth-wrap {
        min-height: calc(100vh - 56px);
        padding: 20px 12px;
        align-items: flex-start;
    }

    .el-auth-card {
        width: 420px;
        max-width: 94vw;
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 20px;
    }

    .el-auth-left {
        padding: 22px 20px;
    }

    .el-auth-left h1 {
        font-size: 24px;
    }

    .el-auth-left p {
        font-size: 13px;
    }

    .el-auth-right {
        padding: 22px 20px;
    }

    .el-auth-right h2 {
        font-size: 22px;
    }

    .el-input,
    .el-btn {
        height: 38px;
    }

    .el-layout {
        display: block;
    }

    .el-sidebar {
        position: fixed;
        left: 0;
        top: 56px;
        bottom: 0;
        transform: translateX(-100%);
        transition: 0.25s ease;
        z-index: 70;
    }

    body.menu-open .el-sidebar {
        transform: translateX(0);
    }

    .el-content {
        padding: 18px;
    }

    .feature-grid,
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 480px) {
    .el-logo .brand-text {
        font-size: 18px;
    }

    .el-auth-wrap {
        padding-top: 16px;
    }

    .el-auth-card {
        width: 96vw;
    }

    .el-auth-left h1 {
        font-size: 22px;
    }

    .el-auth-left p {
        font-size: 12px;
    }

    .el-auth-right h2 {
        font-size: 21px;
    }

    .join-text {
        font-size: 12px;
    }

    .search-add {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box,
    .add-btn {
        width: 100%;
    }
}