* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f1f5f9;
    color: #1e293b;
}


/* =========================================
   LOGIN
========================================= */

.login-container {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;
}


/* =========================================
   LOGIN CARD
========================================= */

.login-card {
    width: 100%;
    max-width: 420px;

    background: #ffffff;

    padding: 40px;

    border-radius: 18px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.08);

    text-align: center;

    box-sizing: border-box;
}


/* =========================================
   LOGO LOGIN
========================================= */

.login-icon {
    width: 120px;
    height: 120px;

    margin: 0 auto 20px auto;

    display: flex;
    align-items: center;
    justify-content: center;

    /* memastikan bentuk area benar-benar lingkaran */
    border-radius: 50%;

    /* jangan memotong logo */
    overflow: visible;

    flex-shrink: 0;
}


/* =========================================
   GAMBAR LOGO
========================================= */

.login-icon img {
    width: 110px;
    height: 110px;

    display: block;

    /* gambar tidak dipotong */
    object-fit: contain;

    object-position: center center;

    /* cegah CSS lain mengecilkan gambar */
    max-width: 110px;
    max-height: 110px;

    /* logo Anda sudah bulat */
    border-radius: 0%;
}


/* =========================================
   JUDUL LOGIN
========================================= */

.login-card h1 {
    font-size: 26px;

    margin-top: 0;
    margin-bottom: 8px;
}


/* =========================================
   DESKRIPSI
========================================= */

.login-description {
    color: #64748b;

    margin-bottom: 30px;
}


/* =========================================
   FORM
========================================= */

.form-group {
    text-align: left;

    margin-bottom: 20px;
}


.form-group label {
    display: block;

    font-weight: 600;

    margin-bottom: 8px;
}


.form-group input {
    width: 100%;

    height: 48px;

    padding: 0 14px;

    border: 1px solid #cbd5e1;

    border-radius: 10px;

    outline: none;

    font-size: 15px;

    box-sizing: border-box;
}


.form-group input:focus {
    border-color: #2563eb;
}


/* =========================================
   BUTTON LOGIN
========================================= */

.btn-login {
    width: 100%;

    height: 50px;

    border: none;

    border-radius: 10px;

    background: #2563eb;

    color: #ffffff;

    font-size: 15px;

    font-weight: bold;

    cursor: pointer;
}


.btn-login:hover {
    background: #1d4ed8;
}


/* =========================================
   ALERT
========================================= */

.alert {
    background: #fef2f2;

    border: 1px solid #fecaca;

    color: #b91c1c;

    padding: 12px;

    border-radius: 8px;

    margin-bottom: 20px;

    font-size: 14px;
}
/* =========================================
   NAVBAR
========================================= */

.navbar {
    height: 65px;

    background: white;

    border-bottom: 1px solid #e2e8f0;

    padding: 0 35px;

    display: flex;

    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 20px;

    font-weight: bold;

    color: #2563eb;
}

.navbar-right {
    display: flex;

    align-items: center;

    gap: 20px;
}

.navbar-right span {
    color: #475569;
}

.navbar-right a {
    text-decoration: none;

    color: #dc2626;

    font-weight: 600;
}


/* =========================================
   DASHBOARD
========================================= */

.dashboard-container {
    padding: 35px;
}

.dashboard-header {
    margin-bottom: 25px;
}

.dashboard-header h1 {
    font-size: 28px;

    margin-bottom: 5px;
}

.dashboard-header p {
    color: #64748b;
}


/* =========================================
   STATISTICS
========================================= */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-bottom: 30px;
}

.stat-card {
    background: white;

    padding: 25px;

    border-radius: 14px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, .05);
}

.stat-title {
    color: #64748b;

    font-size: 14px;

    margin-bottom: 10px;
}

.stat-number {
    font-size: 34px;

    font-weight: bold;
}

.hadir-card {
    border-left: 5px solid #16a34a;
}

.belum-card {
    border-left: 5px solid #f59e0b;
}


/* =========================================
   TABLE
========================================= */

.table-card {
    background: white;

    border-radius: 14px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, .05);

    overflow: hidden;
}

.table-header {
    padding: 20px 25px;

    border-bottom: 1px solid #e2e8f0;
}

.table-header h2 {
    font-size: 19px;
}

.table-responsive {
    overflow-x: auto;
}

table {
    width: 100%;

    border-collapse: collapse;
}

thead {
    background: #f8fafc;
}

th,
td {
    padding: 14px 18px;

    text-align: left;

    border-bottom:
        1px solid #e2e8f0;

    white-space: nowrap;
}

th {
    font-size: 13px;

    color: #475569;
}

td {
    font-size: 14px;
}

.badge {
    display: inline-block;

    padding: 6px 10px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: bold;
}

.badge.hadir {
    background: #dcfce7;

    color: #166534;
}

.badge.belum {
    background: #fef3c7;

    color: #92400e;
}

.empty {
    text-align: center;

    padding: 30px;

    color: #64748b;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 800px) {

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-container {
        padding: 20px;
    }

    .navbar {
        padding: 0 20px;
    }

    .navbar-right span {
        display: none;
    }

}

@media (max-width: 500px) {

    .login-card {
        padding: 30px 20px;
    }

}
/* =========================================
   FILTER CARD
========================================= */

.filter-card {
    background: white;

    padding: 25px;

    border-radius: 14px;

    margin-bottom: 20px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, .05);
}


.filter-title {
    margin-bottom: 20px;
}


.filter-title h2 {
    font-size: 19px;

    margin-bottom: 5px;
}


.filter-title p {
    color: #64748b;

    font-size: 14px;
}


/* =========================================
   FILTER FORM
========================================= */

.filter-form {
    display: grid;

    grid-template-columns:
        1fr 1fr auto;

    gap: 15px;

    align-items: end;
}


.filter-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;

    font-weight: 600;

    color: #334155;
}


.filter-group select {
    width: 100%;

    height: 45px;

    padding: 0 12px;

    border: 1px solid #cbd5e1;

    border-radius: 8px;

    background: white;

    color: #334155;

    font-size: 14px;

    outline: none;

    cursor: pointer;
}


.filter-group select:focus {
    border-color: #2563eb;
}


/* =========================================
   FILTER BUTTON
========================================= */

.filter-button {
    display: flex;

    gap: 8px;
}


.filter-button button {
    height: 45px;

    padding: 0 18px;

    border: none;

    border-radius: 8px;

    background: #2563eb;

    color: white;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;
}


.filter-button button:hover {
    background: #1d4ed8;
}


.filter-button a {
    display: flex;

    align-items: center;

    justify-content: center;

    height: 45px;

    padding: 0 16px;

    border-radius: 8px;

    background: #f1f5f9;

    color: #475569;

    text-decoration: none;

    font-size: 14px;
}


.filter-button a:hover {
    background: #e2e8f0;
}


/* =========================================
   FILTER INFO
========================================= */

.filter-info {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;

    background: #eff6ff;

    border: 1px solid #bfdbfe;

    color: #1e40af;

    padding: 12px 16px;

    border-radius: 8px;

    margin-bottom: 20px;

    font-size: 13px;
}


.filter-info span {
    background: white;

    padding: 5px 9px;

    border-radius: 5px;

    border: 1px solid #dbeafe;
}


/* =========================================
   TABLE HEADER
========================================= */

.table-header p {
    margin-top: 5px;

    color: #64748b;

    font-size: 13px;
}


/* =========================================
   EMPTY DATA
========================================= */

.empty {
    text-align: center;

    padding: 50px 20px !important;

    color: #64748b;
}


.empty-icon {
    font-size: 35px;

    margin-bottom: 10px;
}


.empty strong {
    display: block;

    color: #334155;

    margin-bottom: 5px;
}


.empty p {
    font-size: 13px;
}


/* =========================================
   TEXT MUTED
========================================= */

.text-muted {
    color: #94a3b8;
}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    .filter-form {
        grid-template-columns: 1fr;
    }

    .filter-button {
        width: 100%;
    }

    .filter-button button,
    .filter-button a {
        flex: 1;
    }

}


@media (max-width: 600px) {

    .filter-card {
        padding: 18px;
    }

    .filter-button {
        flex-direction: column;
    }

    .filter-button button,
    .filter-button a {
        width: 100%;
    }

}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.brand span {
    font-size: 18px;
    font-weight: 600;
}

