* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: #f4f7fb;
    color: #1e293b;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    height: 70px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #ffffff;

    border-bottom: 1px solid #e5e7eb;

    position: sticky;
    top: 0;
    z-index: 10;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: #2563eb;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.navbar nav a {
    text-decoration: none;
    color: #64748b;
    padding: 10px 14px;
    border-radius: 8px;
    transition: 0.25s;
    font-size: 14px;
}

.navbar nav a:hover,
.navbar nav a.active {
    color: #2563eb;
    background: #eff6ff;
}

.navbar nav .logout {
    color: #dc2626;
}

.navbar nav .logout:hover {
    background: #fef2f2;
}


/* =========================
   CONTAINER
========================= */

.container {
    width: 86%;
    max-width: 1200px;
    margin: 35px auto;
}


/* =========================
   WELCOME
========================= */

.welcome {
    background: linear-gradient(
        135deg,
        #2563eb,
        #4f46e5
    );

    color: white;

    padding: 30px;

    border-radius: 18px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 25px;

    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.18);
}

.welcome span,
.page-heading span {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
    opacity: 0.8;
}

.welcome h1 {
    font-size: 30px;
    margin: 8px 0;
}

.welcome p {
    opacity: 0.85;
}

.clock {
    font-size: 55px;
}


/* =========================
   PAGE HEADING
========================= */

.page-heading {
    margin-bottom: 25px;
}

.page-heading span {
    color: #2563eb;
}

.page-heading h1 {
    font-size: 30px;
    margin: 7px 0;
    color: #172554;
}

.page-heading p {
    color: #64748b;
}


/* =========================
   TOOLBAR
========================= */

.toolbar {
    background: white;
    padding: 18px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

.search-form input {
    flex: 1;
}

.search-form select {
    width: 190px;
}

.search-form input,
.search-form select {
    margin: 0;
}


/* =========================
   FORM
========================= */

.form-card {
    background: white;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    margin-bottom: 25px;
}

.form-card h2 {
    margin-bottom: 22px;
    color: #172554;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

input,
select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 18px;

    border: 1px solid #dbe2ea;

    border-radius: 9px;

    background: #f8fafc;

    outline: none;

    font-size: 14px;

    transition: 0.2s;
}

input:focus,
select:focus {
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px #dbeafe;
}


/* =========================
   BUTTON
========================= */

button,
.add-button {
    border: none;
    background: #2563eb;
    color: white;

    padding: 11px 17px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    text-decoration: none;

    transition: 0.25s;
}

button:hover,
.add-button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.reset {
    color: #64748b;
    text-decoration: none;
    padding: 10px;
}


/* =========================
   TABLE CARD
========================= */

.table-card {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.table-card > h2 {
    padding: 22px 24px;
    color: #172554;
}

.table-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
}

.table-title h2 {
    color: #172554;
}


/* =========================
   TABLE
========================= */

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f8fafc;
}

th {
    padding: 14px 16px;
    text-align: left;

    font-size: 13px;

    color: #475569;

    border-bottom: 1px solid #e5e7eb;
}

td {
    padding: 15px 16px;

    font-size: 14px;

    border-bottom: 1px solid #f1f5f9;
}

tbody tr {
    transition: 0.2s;
}

tbody tr:hover {
    background: #f8fbff;
}


/* =========================
   BADGE KELAS
========================= */

.class-badge {
    display: inline-block;

    background: #eff6ff;
    color: #2563eb;

    padding: 5px 9px;

    border-radius: 6px;

    font-size: 12px;

    font-weight: 600;
}


/* =========================
   DELETE
========================= */

.delete-button {
    color: #dc2626;
    background: #fef2f2;

    text-decoration: none;

    padding: 7px 10px;

    border-radius: 7px;

    font-size: 12px;

    font-weight: 600;
}

.delete-button:hover {
    background: #fee2e2;
}


/* =========================
   EMPTY DATA
========================= */

.empty {
    text-align: center;
    padding: 35px;
    color: #94a3b8;
}


/* =========================
   LOGIN
========================= */

.login-page {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #dbeafe,
            #eef2ff,
            #f8fafc
        );
}

.login-container {
    width: 390px;

    background: white;

    padding: 40px;

    border-radius: 22px;

    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.12);

    border: 1px solid #e2e8f0;
}

.login-icon {
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    background: #eff6ff;

    border-radius: 16px;

    font-size: 28px;
}

.login-container h1 {
    text-align: center;
    color: #1d4ed8;
    font-size: 28px;
}

.login-subtitle {
    text-align: center;
    color: #64748b;
    margin: 7px 0 28px;
}

.login-container small {
    display: block;

    text-align: center;

    color: #94a3b8;

    margin-top: 22px;
}

.login-button {
    width: 100%;

    padding: 13px;

    margin-top: 5px;

    background: #2563eb;
}

.login-button:hover {
    background: #1d4ed8;
}


/* =========================
   ERROR
========================= */

.error {
    background: #fef2f2;
    color: #dc2626;

    border: 1px solid #fecaca;

    padding: 11px;

    border-radius: 8px;

    margin-bottom: 18px;

    text-align: center;

    font-size: 13px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 800px) {

    .navbar {
        height: auto;
        padding: 15px 5%;
        flex-direction: column;
        gap: 12px;
    }

    .navbar nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .container {
        width: 92%;
    }

    .welcome {
        padding: 25px;
    }

    .welcome h1 {
        font-size: 24px;
    }

    .clock {
        font-size: 40px;
    }

    .search-form {
        flex-direction: column;
    }

    .search-form input,
    .search-form select {
        width: 100%;
    }

    .table-title {
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .login-container {
        width: 90%;
    }
}

/* =========================
   PUBLIC LANDING PAGE
========================= */
.landing-body { background: #fff; color: #172554; }
.landing-navbar { height: 76px; padding: 0 8%; display:flex; align-items:center; justify-content:space-between; background:#fff; border-bottom:1px solid #edf0f5; }
.landing-brand { display:inline-flex; align-items:center; gap:10px; color:#172554; text-decoration:none; font-size:23px; font-weight:800; letter-spacing:-.7px; }
.brand-icon { display:inline-grid; place-items:center; width:39px; height:39px; border-radius:12px; background:#eff6ff; color:#2563eb; font-size:21px; }
.landing-navbar nav { display:flex; align-items:center; gap:30px; }
.landing-navbar nav a { color:#64748b; text-decoration:none; font-size:14px; font-weight:600; transition:.2s; }
.landing-navbar nav a:hover { color:#2563eb; }
.landing-navbar nav .landing-login { color:#fff; background:#2563eb; padding:12px 20px; border-radius:10px; box-shadow:0 7px 16px rgba(37,99,235,.18); }
.landing-navbar nav .landing-login:hover { color:#fff; background:#1d4ed8; }
.landing-hero { min-height:590px; padding:75px 8% 85px; display:grid; grid-template-columns:1.02fr .98fr; align-items:center; gap:45px; background:radial-gradient(circle at 82% 35%,#e8f0ff 0,transparent 33%),linear-gradient(180deg,#fbfdff,#fff); overflow:hidden; }
.hero-content { max-width:590px; }
.hero-label,.section-heading>span,.landing-about>div>span { color:#2563eb; font-size:11px; font-weight:800; letter-spacing:2px; }
.live-dot { display:inline-block; width:7px; height:7px; margin-right:7px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 4px #dcfce7; }
.hero-content h1 { margin:22px 0 18px; color:#14264b; font-size:clamp(39px,5vw,59px); line-height:1.12; letter-spacing:-2.4px; }
.hero-content h1 span { color:#2563eb; }
.hero-content>p { max-width:520px; color:#64748b; font-size:16px; line-height:1.85; }
.hero-actions { display:flex; align-items:center; gap:25px; margin-top:30px; }
.hero-button { display:inline-flex; align-items:center; gap:22px; padding:15px 21px; color:#fff; background:#2563eb; border-radius:10px; text-decoration:none; font-size:14px; font-weight:700; box-shadow:0 10px 22px rgba(37,99,235,.2); transition:.2s; }
.hero-button:hover { background:#1d4ed8; transform:translateY(-2px); }
.hero-button span { font-size:20px; line-height:14px; }
.hero-link { color:#475569; text-decoration:none; font-size:14px; font-weight:700; }
.hero-link:hover { color:#2563eb; }
.hero-note { margin-top:27px; color:#64748b; font-size:12px; }
.hero-note span { color:#16a34a; font-weight:900; }
.hero-visual { position:relative; display:flex; justify-content:center; align-items:center; min-height:430px; }
.visual-glow { position:absolute; width:380px; height:380px; border-radius:50%; background:#dbeafe; filter:blur(2px); opacity:.75; }
.dashboard-preview { position:relative; z-index:1; width:min(100%,410px); padding:23px; border:1px solid #e7edf6; border-radius:19px; background:#fff; box-shadow:0 25px 65px rgba(31,63,112,.14); transform:rotate(1deg); }
.preview-top,.preview-top>div { display:flex; align-items:center; }
.preview-top { justify-content:space-between; padding-bottom:17px; border-bottom:1px solid #eef2f7; color:#1e293b; font-size:13px; }
.preview-logo { display:inline-grid; place-items:center; width:28px; height:28px; margin-right:5px; border-radius:8px; background:#eff6ff; }
.preview-status { color:#16a34a; font-size:10px; font-weight:700; }
.preview-heading { padding:22px 0 16px; }
.preview-heading small { color:#2563eb; font-size:9px; font-weight:800; letter-spacing:1.5px; }
.preview-heading h3 { margin:5px 0 3px; color:#172554; font-size:19px; }
.preview-heading p { color:#94a3b8; font-size:11px; }
.preview-stats { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.preview-stat { position:relative; padding:14px; border:1px solid #edf1f6; border-radius:12px; }
.preview-stat small,.preview-stat strong,.preview-stat em { display:block; }
.preview-stat small { margin:9px 0 4px; color:#64748b; font-size:10px; }
.preview-stat strong { color:#172554; font-size:14px; }
.preview-stat em { margin-top:4px; color:#94a3b8; font-size:9px; font-style:normal; }
.stat-symbol { display:inline-grid; place-items:center; width:28px; height:28px; border-radius:8px; font-size:16px; }
.blue-symbol { color:#2563eb; background:#eff6ff; }.orange-symbol { color:#ea580c; background:#fff7ed; }
.preview-list-title { display:flex; justify-content:space-between; margin:21px 0 10px; color:#334155; font-size:11px; }
.preview-list-title span { color:#2563eb; font-size:10px; }
.preview-row { display:flex; align-items:center; gap:10px; padding:10px 0; border-top:1px solid #f1f5f9; }
.row-avatar { display:grid; place-items:center; width:31px; height:31px; border-radius:9px; color:#2563eb; background:#eff6ff; }
.orange-avatar { color:#ea580c; background:#fff7ed; }.green-avatar { color:#16a34a; background:#f0fdf4; }
.preview-row b,.preview-row small { display:block; }.preview-row b { color:#334155; font-size:10px; }.preview-row small { margin-top:3px; color:#94a3b8; font-size:9px; }
.row-arrow { margin-left:auto; color:#94a3b8; font-size:22px; }
.floating-chip { position:absolute; z-index:2; right:-3px; bottom:40px; padding:12px 16px; border:1px solid #e5eaf2; border-radius:12px; background:#fff; color:#334155; font-size:11px; font-weight:700; box-shadow:0 10px 30px rgba(31,63,112,.12); }
.floating-chip span { display:inline-grid; place-items:center; width:19px; height:19px; margin-right:5px; border-radius:50%; color:#16a34a; background:#dcfce7; }
.landing-features { padding:75px 8% 85px; background:#fff; }
.section-heading { text-align:center; }.section-heading h2 { margin:12px 0 9px; color:#172554; font-size:30px; letter-spacing:-.8px; }.section-heading p { color:#64748b; font-size:14px; }
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; max-width:1100px; margin:38px auto 0; }
.feature-card { padding:27px; border:1px solid #edf1f6; border-radius:15px; background:#fff; transition:.2s; }.feature-card:hover { transform:translateY(-4px); box-shadow:0 15px 35px rgba(31,63,112,.08); }
.feature-icon { display:grid; place-items:center; width:46px; height:46px; margin-bottom:18px; border-radius:13px; font-size:23px; }.feature-blue { color:#2563eb; background:#eff6ff; }.feature-orange { color:#ea580c; background:#fff7ed; }.feature-green { color:#16a34a; background:#f0fdf4; }
.feature-card h3 { margin-bottom:9px; color:#172554; font-size:17px; }.feature-card p { color:#64748b; font-size:13px; line-height:1.75; }
.landing-about { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:55px; padding:65px 10%; background:#f8faff; }.landing-about h2 { margin-top:12px; color:#172554; font-size:27px; line-height:1.35; }.landing-about p { color:#64748b; font-size:14px; line-height:1.9; }
.landing-footer { min-height:85px; padding:20px 8%; display:flex; align-items:center; justify-content:space-between; gap:20px; background:#fff; }.landing-footer .landing-brand { font-size:18px; }.landing-footer .brand-icon { width:32px; height:32px; font-size:17px; }.landing-footer>span { color:#94a3b8; font-size:11px; }
@media (max-width:850px) { .landing-navbar { padding:0 5%; }.landing-navbar nav { gap:14px; }.landing-hero { padding:55px 6%; grid-template-columns:1fr; }.hero-content { max-width:680px; }.hero-visual { min-height:410px; }.feature-grid { gap:12px; }.feature-card { padding:20px; }.landing-about { padding:55px 7%; gap:25px; } }
@media (max-width:600px) { .landing-navbar { height:auto; min-height:70px; padding:14px 5%; align-items:flex-start; gap:12px; flex-direction:column; }.landing-navbar nav { width:100%; justify-content:space-between; gap:7px; }.landing-navbar nav a { font-size:11px; }.landing-navbar nav .landing-login { padding:9px 11px; }.landing-hero { padding:48px 6% 35px; gap:15px; }.hero-content h1 { font-size:39px; letter-spacing:-1.5px; }.hero-content>p { font-size:14px; }.hero-actions { gap:16px; flex-wrap:wrap; }.hero-button { padding:13px 15px; }.hero-visual { min-height:370px; }.dashboard-preview { padding:17px; }.floating-chip { right:0; bottom:15px; }.landing-features { padding:55px 6%; }.section-heading h2 { font-size:25px; }.feature-grid { grid-template-columns:1fr; }.feature-card { padding:22px; }.landing-about { grid-template-columns:1fr; padding:48px 7%; }.landing-about h2 { font-size:24px; }.landing-footer { align-items:flex-start; flex-direction:column; padding:22px 7%; } }

.login-back { display:block; margin-top:17px; color:#64748b; font-size:12px; text-decoration:none; text-align:center; }
.login-back:hover { color:#2563eb; }
