/* =========================================================
   LMS SMKN 1 TALAWI
   APP.CSS - FULL
   ========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #eef5f9;
    color: #123f61;
}

/* =========================================================
   APP SHELL
   ========================================================= */

.app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.sidebar {
    position: sticky;
    top: 0;

    width: 380px;
    min-width: 380px;
    height: 100vh;
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background: #073b5c;
    color: #fff;

    overflow: hidden;
    z-index: 100;

    box-sizing: border-box;
}

/* =========================================================
   BRAND
   ========================================================= */

.brand {
    flex-shrink: 0;

    display: flex;
    align-items: center;

    gap: 16px;

    padding: 28px 28px 24px;

    border-bottom: 1px solid rgba(255,255,255,.12);
}

.brand-mark {
    width: 64px;
    height: 64px;
    min-width: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: #ffc629;
    color: #079bd0;

    font-size: 36px;

    box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.brand-mark.small {
    width: 60px;
    height: 60px;
    min-width: 60px;
}

.brand b {
    display: block;

    color: #fff;

    font-size: 20px;
    line-height: 1.2;
    font-weight: 800;
}

.brand small {
    display: block;

    margin-top: 7px;

    color: #a9c7d8;

    font-size: 14px;
    line-height: 1.35;
}

/* =========================================================
   NAVIGATION AREA
   ========================================================= */

.sidebar nav {
    flex: 1 1 auto;

    min-height: 0;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 18px 18px 20px;

    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.25) transparent;
}

/* Chrome scrollbar */

.sidebar nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.25);
    border-radius: 20px;
}

.sidebar nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,.40);
}

/* =========================================================
   NAV LABEL
   ========================================================= */

.nav-label {
    margin: 20px 16px 9px;

    color: #8eb5cc;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 2px;
}

/* Label pertama */

.nav-label:first-child {
    margin-top: 5px;
}

/* =========================================================
   MENU LINK
   ========================================================= */

.sidebar nav a {
    display: flex;
    align-items: center;

    width: 100%;
    min-height: 52px;

    padding: 0 17px;
    margin: 4px 0;

    border-radius: 16px;

    color: #eaf4f9;

    text-decoration: none;

    font-size: 17px;
    font-weight: 500;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;

    white-space: nowrap;

    overflow: hidden;
}

/* Hover */

.sidebar nav a:hover {
    background: rgba(255,255,255,.09);

    color: #fff;

    transform: translateX(2px);
}

/* Active */

.sidebar nav a.active {
    background: #11698e;

    color: #fff;

    font-weight: 700;

    border-left: 5px solid #ffc629;

    padding-left: 12px;

    box-shadow: 0 6px 15px rgba(0,0,0,.08);
}

/* =========================================================
   ADMIN USER BOX
   ========================================================= */

.user-box {
    flex-shrink: 0;

    width: calc(100% - 32px);

    min-height: 76px;

    margin: 10px 16px 16px;

    padding: 12px 13px;

    display: flex;
    align-items: center;

    gap: 12px;

    background: #174b6d;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 18px;

    position: relative;

    z-index: 200;

    overflow: hidden;
}

/* Avatar */

.user-box .avatar {
    flex: 0 0 48px;

    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffc629;

    color: #073b5c;

    font-size: 21px;
    font-weight: 800;
}

/* Informasi user */

.user-box > div:nth-child(2) {
    flex: 1 1 auto;

    min-width: 0;

    display: flex;
    flex-direction: column;

    justify-content: center;

    gap: 3px;

    overflow: hidden;
}

/* Nama */

.user-box b {
    display: block;

    color: #fff;

    font-size: 15px;
    font-weight: 700;

    line-height: 1.25;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}

/* Role */

.user-box small {
    display: block;

    color: #b8d0df;

    font-size: 13px;

    line-height: 1.2;
}

/* Logout */

.user-box > a {
    flex: 0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: auto;

    border-radius: 12px;

    background: #ffc629;

    color: #073b5c;

    font-size: 22px;
    font-weight: 800;

    text-decoration: none;

    transition: all .2s ease;
}

.user-box > a:hover {
    background: #fff;

    color: #073b5c;

    transform: translateX(2px);
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */

.main {
    flex: 1;

    min-width: 0;

    min-height: 100vh;

    background: #eef5f9;

    overflow-x: hidden;
}

/* =========================================================
   TOPBAR
   ========================================================= */

.topbar {
    min-height: 210px;

    padding: 48px 60px 42px;

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    background: #fff;

    border-bottom: 1px solid #dce8ef;
}

.topbar .eyebrow {
    display: block;

    margin-bottom: 12px;

    color: #0b9bc7;

    font-size: 16px;
    font-weight: 800;

    letter-spacing: 5px;
}

.topbar h2 {
    margin: 0;

    color: #173f60;

    font-size: 42px;
    line-height: 1.15;

    font-weight: 800;
}

.topbar p {
    margin: 10px 0 0;

    color: #7891a4;

    font-size: 19px;
}

.year {
    margin-top: 42px;

    color: #71899a;

    font-size: 24px;
    font-weight: 700;
}

/* =========================================================
   CONTENT
   ========================================================= */

.content {
    padding: 58px 60px 70px;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 275px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 48px 55px;

    border-radius: 34px;

    background: linear-gradient(
        120deg,
        #0a476b 0%,
        #0b6385 45%,
        #0ba5c6 100%
    );

    color: #fff;

    overflow: hidden;

    box-shadow: 0 18px 40px rgba(6,70,100,.12);
}

.hero::before {
    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    right: -120px;
    top: -170px;

    border-radius: 50%;

    background: rgba(255,255,255,.05);
}

.hero > div:first-child {
    position: relative;

    z-index: 2;

    max-width: 900px;
}

.hero .eyebrow {
    display: block;

    margin-bottom: 14px;

    color: #8deaff;

    font-size: 16px;
    font-weight: 800;

    letter-spacing: 5px;
}

.hero h1 {
    margin: 0;

    color: #fff;

    font-size: 43px;
    line-height: 1.15;

    font-weight: 800;
}

.hero p {
    margin: 15px 0 0;

    color: #eefaff;

    font-size: 19px;
}

.hero-icon {
    position: relative;

    z-index: 2;

    width: 150px;
    height: 150px;

    min-width: 150px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 30px;

    background: #ffc629;

    color: #079bd0;

    font-size: 78px;

    box-shadow: 0 15px 35px rgba(0,0,0,.12);
}

/* =========================================================
   CARDS
   ========================================================= */

.cards {
    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 24px;

    margin-top: 28px;
}

.card {
    min-height: 180px;

    padding: 28px;

    display: flex;
    flex-direction: column;

    background: #fff;

    border: 1px solid #e0ebf1;

    border-radius: 25px;

    box-shadow: 0 10px 25px rgba(21,73,99,.06);

    transition: all .2s ease;
}

.card:hover {
    transform: translateY(-4px);

    box-shadow: 0 18px 35px rgba(21,73,99,.10);
}

.card > span {
    display: block;

    margin-bottom: 18px;

    font-size: 32px;
}

.card b {
    display: block;

    color: #173f60;

    font-size: 20px;
}

.card small {
    display: block;

    margin-top: 8px;

    color: #7891a4;

    font-size: 15px;

    line-height: 1.5;
}

/* =========================================================
   PANEL
   ========================================================= */

.panel {
    margin-top: 28px;

    padding: 30px;

    background: #fff;

    border: 1px solid #e0ebf1;

    border-radius: 25px;

    box-shadow: 0 10px 25px rgba(21,73,99,.05);
}

.panel h3 {
    margin: 0 0 10px;

    color: #173f60;

    font-size: 22px;
}

.panel p {
    margin: 0;

    color: #71899a;

    font-size: 16px;

    line-height: 1.7;
}

/* =========================================================
   GENERAL FORM
   ========================================================= */

input,
select,
textarea {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid #d6e3eb;

    border-radius: 12px;

    background: #fff;

    color: #173f60;

    font-family: inherit;

    font-size: 15px;

    outline: none;

    transition: border .2s ease, box-shadow .2s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #0b9bc7;

    box-shadow: 0 0 0 4px rgba(11,155,199,.10);
}

/* =========================================================
   BUTTON
   ========================================================= */

button,
.btn {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 20px;

    border: none;

    border-radius: 11px;

    background: #0b6c91;

    color: #fff;

    font-family: inherit;

    font-size: 15px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    transition: all .2s ease;
}

button:hover,
.btn:hover {
    background: #095878;

    transform: translateY(-1px);
}

/* =========================================================
   TABLE
   ========================================================= */

table {
    width: 100%;

    border-collapse: collapse;

    background: #fff;
}

th,
td {
    padding: 13px 15px;

    border-bottom: 1px solid #e4edf2;

    text-align: left;
}

th {
    background: #f4f8fa;

    color: #315a72;

    font-size: 14px;
}

td {
    color: #506e80;

    font-size: 14px;
}

/* =========================================================
   RESPONSIVE - LAPTOP
   ========================================================= */

@media (max-width: 1200px) {

    .sidebar {
        width: 300px;
        min-width: 300px;
    }

    .topbar {
        padding: 40px 45px;
    }

    .content {
        padding: 45px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero-icon {
        width: 120px;
        height: 120px;
        min-width: 120px;

        font-size: 60px;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* =========================================================
   RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 900px) {

    .sidebar {
        width: 270px;
        min-width: 270px;
    }

    .brand {
        padding: 22px 20px;
    }

    .brand b {
        font-size: 17px;
    }

    .brand small {
        font-size: 12px;
    }

    .topbar {
        min-height: 180px;

        padding: 35px 30px;
    }

    .topbar h2 {
        font-size: 34px;
    }

    .topbar p {
        font-size: 16px;
    }

    .year {
        font-size: 20px;
    }

    .content {
        padding: 35px 30px;
    }

    .hero {
        padding: 38px;
    }

    .hero h1 {
        font-size: 31px;
    }

    .hero p {
        font-size: 16px;
    }

    .hero-icon {
        width: 100px;
        height: 100px;
        min-width: 100px;

        font-size: 50px;
    }
}

/* =========================================================
   RESPONSIVE - HP
   ========================================================= */

@media (max-width: 700px) {

    .app-shell {
        display: block;
    }

    .sidebar {
        position: relative;

        width: 100%;
        min-width: 100%;

        height: auto;
        min-height: auto;
    }

    .sidebar nav {
        max-height: 420px;
    }

    .user-box {
        margin-bottom: 15px;
    }

    .main {
        min-height: auto;
    }

    .topbar {
        min-height: auto;

        padding: 30px 22px;

        display: block;
    }

    .topbar h2 {
        font-size: 30px;
    }

    .year {
        margin-top: 18px;
    }

    .content {
        padding: 25px 18px 40px;
    }

    .hero {
        min-height: auto;

        padding: 30px;

        display: block;
    }

    .hero h1 {
        font-size: 28px;
    }

    .hero-icon {
        margin-top: 25px;

        width: 85px;
        height: 85px;
        min-width: 85px;

        font-size: 42px;
    }

    .cards {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   LAYAR PENDEK
   ========================================================= */

@media (max-height: 700px) and (min-width: 701px) {

    .brand {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .brand-mark {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .sidebar nav {
        padding-top: 8px;
        padding-bottom: 10px;
    }

    .nav-label {
        margin-top: 13px;
    }

    .sidebar nav a {
        min-height: 43px;
    }

    .user-box {
        min-height: 64px;

        margin-top: 7px;
        margin-bottom: 10px;

        padding: 8px 10px;
    }

    .user-box .avatar {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }

    .user-box > a {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
}