* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {

    font-family:
        Arial,
        sans-serif;

    background: #f1f5f9;

    color: #233957;

}


/* ================================
   LOGIN
================================ */

.login-container {

    min-height: 100vh;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 20px;

}


.login-card {

    width: 100%;

    max-width: 400px;

    background: white;

    padding: 35px;

    border-radius: 15px;

    box-shadow:
        0 10px 35px
        rgba(0,0,0,.10);

}


.login-logo {

    width: 60px;

    height: 60px;

    margin: 0 auto 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eef2f7;

    border-radius: 50%;

    font-size: 28px;

}


.login-card h1 {

    text-align: center;

    font-size: 22px;

    color: #233957;

}


.login-card > p {

    text-align: center;

    margin-top: 5px;

    margin-bottom: 25px;

    color: #8995a5;

    font-size: 12px;

}


.form-group {

    margin-bottom: 18px;

}


.form-group label {

    display: block;

    margin-bottom: 7px;

    font-size: 12px;

    font-weight: 600;

}


.form-group input {

    width: 100%;

    padding: 12px 13px;

    border: 1px solid #dbe2ea;

    border-radius: 7px;

    outline: none;

    font-size: 13px;

}


.form-group input:focus {

    border-color: #233957;

}


.login-button {

    width: 100%;

    padding: 12px;

    border: none;

    border-radius: 7px;

    background: #233957;

    color: white;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

}


.login-button:hover {

    opacity: .9;

}


.login-error {

    background: #fee2e2;

    color: #b91c1c;

    padding: 10px;

    border-radius: 7px;

    margin-bottom: 18px;

    font-size: 11px;

    text-align: center;

}


.back-home {

    display: block;

    margin-top: 20px;

    text-align: center;

    color: #64748b;

    text-decoration: none;

    font-size: 10px;

}


.back-home:hover {

    text-decoration: underline;

}


@media (max-width: 450px) {

    .login-card {

        padding: 25px 20px;

    }

}

/* =================================
   ADMIN DASHBOARD
================================= */

.admin-layout {

    min-height: 100vh;

    display: flex;

    background: #f5f7fa;

}


/* SIDEBAR */

.sidebar {

    width: 240px;

    min-height: 100vh;

    background: #233957;

    color: white;

    display: flex;

    flex-direction: column;

    padding: 22px 15px;

}


.sidebar-logo {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 5px 8px 25px;

    border-bottom:
        1px solid
        rgba(255,255,255,.1);

}


.sidebar-icon {

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        rgba(255,255,255,.1);

    border-radius: 10px;

    font-size: 20px;

}


.sidebar-logo strong {

    display: block;

    font-size: 12px;

}


.sidebar-logo span {

    display: block;

    margin-top: 3px;

    color: #b9c7d8;

    font-size: 8px;

}


/* MENU */

.sidebar-menu {

    margin-top: 25px;

}


.sidebar-menu a,
.sidebar-bottom a {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 12px;

    margin-bottom: 5px;

    color: #cbd5e1;

    text-decoration: none;

    border-radius: 7px;

    font-size: 11px;

    transition: .2s;

}


.sidebar-menu a:hover,
.sidebar-menu a.active {

    background:
        rgba(255,255,255,.12);

    color: white;

}


.sidebar-bottom {

    margin-top: auto;

}


.sidebar-bottom .logout:hover {

    background:
        rgba(220,38,38,.2);

    color: white;

}


/* MAIN */

.admin-main {

    flex: 1;

    padding: 30px;

    min-width: 0;

}


/* HEADER */

.admin-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;

}


.admin-header h1 {

    font-size: 25px;

    color: #233957;

}


.admin-header p {

    margin-top: 5px;

    color: #8995a5;

    font-size: 11px;

}


.admin-user {

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 8px 12px;

    background: white;

    border-radius: 8px;

    box-shadow:
        0 2px 10px
        rgba(0,0,0,.04);

}


.admin-user > span {

    font-size: 22px;

}


.admin-user strong {

    display: block;

    font-size: 11px;

}


.admin-user small {

    display: block;

    margin-top: 3px;

    color: #8995a5;

    font-size: 8px;

}


/* STATISTIK */

.stat-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;

}


.stat-card {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 18px;

    background: white;

    border-radius: 10px;

    box-shadow:
        0 2px 10px
        rgba(0,0,0,.04);

}


.stat-icon {

    width: 42px;

    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #eef2f7;

    border-radius: 9px;

    font-size: 20px;

}


.stat-card span {

    display: block;

    color: #8995a5;

    font-size: 9px;

}


.stat-card strong {

    display: block;

    margin-top: 4px;

    color: #233957;

    font-size: 22px;

}


/* WELCOME */

.welcome-card {

    margin-top: 25px;

    padding: 30px;

    background: #233957;

    color: white;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    overflow: hidden;

}


.welcome-label {

    font-size: 9px;

    letter-spacing: 2px;

    opacity: .7;

}


.welcome-card h2 {

    margin-top: 8px;

    font-size: 26px;

}


.welcome-card p {

    max-width: 550px;

    margin-top: 10px;

    color: #cbd5e1;

    font-size: 11px;

    line-height: 1.7;

}


.welcome-icon {

    font-size: 70px;

    opacity: .15;

}


/* RESPONSIVE */

@media (max-width: 900px) {

    .stat-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


@media (max-width: 650px) {

    .sidebar {

        width: 65px;

        padding: 15px 8px;

    }


    .sidebar-logo {

        justify-content: center;

        padding-bottom: 20px;

    }


    .sidebar-logo > div:last-child {

        display: none;

    }


    .sidebar-menu a,
    .sidebar-bottom a {

        justify-content: center;

    }


    .sidebar-menu a span,
    .sidebar-bottom a span {

        display: none;

    }


    .admin-main {

        padding: 20px 15px;

    }


    .admin-header {

        align-items: flex-start;

    }


    .admin-header h1 {

        font-size: 20px;

    }


    .admin-user {

        padding: 6px;

    }


    .admin-user div {

        display: none;

    }


    .welcome-card {

        padding: 22px;

    }


    .welcome-card h2 {

        font-size: 20px;

    }


    .welcome-icon {

        display: none;

    }

}


@media (max-width: 450px) {

    .stat-grid {

        grid-template-columns: 1fr;

    }

}