/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

    font-family: Arial, Helvetica, sans-serif;

    background: #f1f5f9;

    color: #1e293b;

}

/* =========================
   NAVBAR
========================= */

.navbar {

    background: #0f172a;

    padding: 16px 30px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.logo {

    color: white;

    font-size: 24px;

    font-weight: bold;

    text-decoration: none;

}

.nav-menu {

    display: flex;

    gap: 10px;

}

.nav-menu a {

    color: #cbd5e1;

    text-decoration: none;

    padding: 10px 16px;

    border-radius: 10px;

    transition: 0.2s;

}

.nav-menu a:hover {

    background: #1e293b;

    color: white;

}

.active {

    background: #1e293b;

    color: white !important;

}

/* =========================
   CONTAINER
========================= */

.container {

    max-width: 1200px;

    margin: auto;

    padding: 30px 20px;

}

/* =========================
   PAGE TITLE
========================= */

.page-title {

    margin-bottom: 30px;

}

.page-title h1 {

    font-size: 38px;

    margin-bottom: 10px;

}

.page-title p {

    color: #64748b;

}

/* =========================
   CARD
========================= */

.card {

    background: white;

    border-radius: 16px;

    padding: 24px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

    margin-bottom: 24px;

}

/* =========================
   DASHBOARD GRID
========================= */

.dashboard-grid {

    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(250px, 1fr));

    gap: 20px;

    margin-bottom: 24px;

}

.dashboard-card {

    background: white;

    border-radius: 16px;

    padding: 24px;

    display: flex;

    align-items: center;

    gap: 20px;

    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);

}

.card-icon {

    width: 70px;

    height: 70px;

    border-radius: 14px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 32px;

    color: white;

}

.blue {
    background: #3b82f6;
}

.green {
    background: #10b981;
}

.orange {
    background: #f59e0b;
}

.purple {
    background: #8b5cf6;
}

.dashboard-card h3 {

    font-size: 15px;

    color: #64748b;

    margin-bottom: 8px;

}

.dashboard-card h1 {

    font-size: 34px;

}

/* =========================
   STATUS
========================= */

.status-success {

    background: #dcfce7;

    color: #166534;

    padding: 14px;

    border-radius: 10px;

    font-weight: bold;

}

.status-danger {

    background: #fee2e2;

    color: #991b1b;

    padding: 14px;

    border-radius: 10px;

    font-weight: bold;

}

/* =========================
   QUICK MENU
========================= */

.quick-menu {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

}

.quick-btn {

    background: #0f172a;

    color: white;

    text-decoration: none;

    padding: 12px 18px;

    border-radius: 10px;

    transition: 0.2s;

}

.quick-btn:hover {

    background: #1e293b;

}

/* =========================
   FLEX
========================= */

.flex {

    display: flex;

    gap: 12px;

}

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

.form-control {

    width: 100%;

    padding: 12px 14px;

    border: 1px solid #cbd5e1;

    border-radius: 10px;

    outline: none;

    font-size: 15px;

}

.form-control:focus {

    border-color: #3b82f6;

}

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

.btn {

    border: none;

    padding: 12px 18px;

    border-radius: 10px;

    cursor: pointer;

    font-size: 15px;

    font-weight: bold;

    transition: 0.2s;

}

.btn-primary {

    background: #2563eb;

    color: white;

}

.btn-primary:hover {

    background: #1d4ed8;

}

.btn-success {

    background: #10b981;

    color: white;

}

.btn-success:hover {

    background: #059669;

}

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

.table-container {

    overflow-x: auto;

}

table {

    width: 100%;

    border-collapse: collapse;

}

thead {

    background: #0f172a;

    color: white;

}

th {

    text-align: left;

    padding: 16px;

}

td {

    padding: 16px;

    border-bottom: 1px solid #e2e8f0;

}

/* =========================
   BADGE
========================= */

.badge {

    padding: 8px 14px;

    border-radius: 999px;

    font-size: 14px;

    font-weight: bold;

}

.badge-success {

    background: #dcfce7;

    color: #166534;

}

.badge-warning {

    background: #fef3c7;

    color: #92400e;

}

/* =========================
   MODAL
========================= */

.modal {

    display: none;

    position: fixed;

    z-index: 999;

    left: 0;

    top: 0;

    width: 100%;

    height: 100%;

    background: rgba(0, 0, 0, 0.5);

    justify-content: center;

    align-items: center;

}

.modal-content {

    background: white;

    width: 500px;

    max-width: 95%;

    border-radius: 16px;

    padding: 24px;

    animation: modalShow 0.2s ease;

}

@keyframes modalShow {

    from {

        transform: translateY(-20px);

        opacity: 0;

    }

    to {

        transform: translateY(0);

        opacity: 1;

    }

}

.modal-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 20px;

}

.close {

    font-size: 28px;

    cursor: pointer;

}

/* =========================
   FORM GROUP
========================= */

.form-group {

    margin-bottom: 16px;

}

.form-group label {

    display: block;

    margin-bottom: 8px;

    font-weight: bold;

}

/* =========================
   GRID
========================= */

.grid-2 {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 24px;

    margin-bottom: 24px;

}

.grid-4 {

    display: grid;

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

    gap: 20px;

    margin-bottom: 24px;

}

/* =========================
   STEP CARD
========================= */

.step-card {

    text-align: center;

    padding: 24px;

}

.step-number {

    width: 40px;

    height: 40px;

    border-radius: 50%;

    background: #2563eb;

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: auto;

    margin-bottom: 16px;

    font-weight: bold;

}

.step-card h3 {

    margin-bottom: 10px;

}

.step-card p {

    color: #64748b;

    font-size: 14px;

    line-height: 1.5;

}

/* =========================
   INFO BOX
========================= */

.info-box {

    margin-top: 20px;

    background: #dbeafe;

    color: #1e40af;

    padding: 16px;

    border-radius: 12px;

    line-height: 1.6;

}

/* =========================
   WARNING BOX
========================= */

.warning-box {

    margin-top: 20px;

    background: #fef3c7;

    color: #92400e;

    padding: 16px;

    border-radius: 12px;

    line-height: 1.6;

}

/* =========================
   TEXT
========================= */

.text-muted {

    color: #64748b;

}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:1000px) {

    .grid-4 {

        grid-template-columns: 1fr 1fr;

    }

}

@media(max-width:768px) {

    .grid-2 {

        grid-template-columns: 1fr;

    }

    .grid-4 {

        grid-template-columns: 1fr;

    }

}

/* =========================
   STATS GRID
========================= */

.stats-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;

    margin-bottom: 24px;

}

/* =========================
   STAT BOX
========================= */

.stat-box {

    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    padding: 20px;

}

.stat-title {

    color: #64748b;

    font-size: 14px;

    margin-bottom: 10px;

}

.stat-value {

    font-size: 32px;

    font-weight: 700;

    color: #0f172a;

}

/* =========================
   VARIANT
========================= */

.stat-box.success {

    background: #dcfce7;

}

.stat-box.warning {

    background: #fef3c7;

}

.stat-box.primary {

    background: #dbeafe;

}

/* =========================
   MOBILE
========================= */

@media(max-width:768px) {

    .stats-grid {

        grid-template-columns: 1fr;

    }

}

/* ======================================
   ABSENSI
====================================== */

.jadwal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 14px 0;

    border-bottom: 1px solid #e2e8f0;
}

.status-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-box {
    margin-top: 20px;

    padding: 16px;

    border-radius: 14px;

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

.info-box.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.info-box.green {
    background: #dcfce7;
    color: #166534;
}

.btn-full {
    width: 100%;
    margin-top: 24px;
}

/* ======================================
   LAPORAN SAW
====================================== */

.stats-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(220px, 1fr));

    gap: 20px;

    margin-bottom: 30px;
}

.stat-card {
    background: white;

    border-radius: 20px;

    padding: 24px;

    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stat-title {
    font-size: 14px;

    color: #64748b;

    margin-bottom: 12px;
}

.stat-value {
    font-size: 34px;

    font-weight: 700;

    color: #0f172a;
}


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

.table-header {
    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: 20px;

    flex-wrap: wrap;
}


/* ======================================
   SEARCH FORM
====================================== */

.search-form {
    display: flex;

    gap: 12px;

    align-items: center;
}

.search-form .form-control {
    min-width: 260px;
}


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

.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;

    border-collapse: collapse;
}

.table thead {
    background: #0f172a;

    color: white;
}

.table thead th {
    padding: 16px;

    text-align: left;

    font-size: 14px;
}

.table tbody tr {
    border-bottom: 1px solid #e2e8f0;
}

.table tbody td {
    padding: 16px;

    font-size: 14px;

    color: #1e293b;
}

.table tbody tr:hover {
    background: #f8fafc;
}


/* ======================================
   BADGE
====================================== */

.badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    padding: 8px 14px;

    border-radius: 999px;

    font-size: 12px;

    font-weight: 600;
}

.badge-success {
    background: #dcfce7;

    color: #166534;
}

.badge-primary {
    background: #dbeafe;

    color: #1d4ed8;
}

.badge-warning {
    background: #fef3c7;

    color: #92400e;
}

.badge-danger {
    background: #fee2e2;

    color: #b91c1c;
}


/* ======================================
   TEXT COLOR
====================================== */

.text-success {
    color: #16a34a;
}

.text-primary {
    color: #2563eb;
}

.text-danger {
    color: #dc2626;
}


/* ======================================
   RESPONSIVE
====================================== */

@media (max-width: 768px) {

    .table-header {
        flex-direction: column;

        align-items: stretch;
    }

    .search-form {
        width: 100%;
    }

    .search-form .form-control {
        width: 100%;
        min-width: unset;
    }

}

/* ======================================
   SAW INFO
====================================== */

.saw-info-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fit, minmax(160px, 1fr));

    gap: 16px;
}

.saw-info-card {
    background: #f8fafc;

    border: 1px solid #e2e8f0;

    border-radius: 16px;

    padding: 18px;
}

.saw-info-card h4 {
    color: #2563eb;

    font-size: 15px;

    margin-bottom: 8px;
}

.saw-info-card p {
    color: #64748b;

    font-size: 13px;

    line-height: 1.5;
}

.text-muted {
    color: #64748b;

    margin-bottom: 20px;

    line-height: 1.7;
}

/* =========================================
   HAMBURGER
========================================= */

.hamburger {

    display: none;

    background: none;

    border: none;

    color: white;

    font-size: 28px;

    cursor: pointer;
}


/* =========================================
   MOBILE NAVBAR
========================================= */

@media(max-width:768px) {

    .navbar {

        flex-wrap: wrap;

        padding: 16px 20px;
    }

    .hamburger {

        display: block;
    }

    .nav-menu {

        width: 100%;

        display: none;

        flex-direction: column;

        gap: 10px;

        margin-top: 20px;
    }

    .nav-menu.show {

        display: flex;
    }

    .nav-menu a {

        width: 100%;
    }

}

/* =========================================
   DATA GURU MOBILE FIX
========================================= */

@media(max-width:768px) {

    .flex {

        flex-direction: column;
    }

    .flex .form-control {

        width: 100%;
    }

    .flex .btn {

        width: 100%;
    }

}

@media(max-width:576px) {

    .flex {

        width: 100%;
    }

    .flex .btn {

        width: 100%;

        max-width: 100%;

        margin-left: auto;

        margin-right: auto;
    }

}

/* =========================================
   MOBILE FINAL POLISH
========================================= */

@media(max-width:576px) {

    body {

        overflow-x: hidden;
    }

    .container {

        padding: 20px 14px;
    }

    .card {

        padding: 18px;

        border-radius: 18px;
    }

    .page-title h1 {

        font-size: 28px;

        line-height: 1.2;
    }

    .page-title p {

        font-size: 15px;
    }

    .table-container {

        overflow-x: auto;
    }

    table {

        min-width: 520px;
    }

    th,
    td {

        padding: 14px 12px;

        font-size: 14px;
    }

    .dashboard-card {

        padding: 18px;
    }

    .card h2 {

        font-size: 20px;
    }

    .btn {

        padding: 14px;

        font-size: 15px;
    }

}

.btn-icon {

    width: 40px;

    height: 40px;

    border: none;

    border-radius: 10px;

    cursor: pointer;

    font-size: 16px;

    transition: 0.2s;

}

.btn-edit {

    background: #fff3cd;

    color: #856404;

}

.btn-edit:hover {

    transform: scale(1.05);

}

.btn-delete {

    background: #f8d7da;

    color: #721c24;

}

.btn-delete:hover {

    transform: scale(1.05);

}

.table-toolbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;

    flex-wrap:wrap;

}

.table-toolbar form{

    display:flex;

    gap:10px;

    align-items:center;

}

.table-toolbar input{

    width:220px;

}

.export-actions{

    display:flex;

    gap:10px;

}

.table-toolbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:15px;

    flex-wrap:wrap;

    margin-bottom:20px;

}

.table-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:20px;

    gap:20px;

    flex-wrap:wrap;

}

.table-header h2{

    margin:0;

}

.table-toolbar{

    display:flex;

    align-items:center;

    gap:15px;

    flex-wrap:wrap;

}

.table-toolbar form{

    display:flex;

    align-items:center;

    gap:10px;

}

.export-actions{

    display:flex;

    gap:10px;

}
.table-toolbar form input{

    width: 280px;

    min-width: 280px;

    padding: 10px 14px;

    border: 1px solid #cbd5e1;

    border-radius: 10px;

    font-size: 14px;

}

/* =====================================
   RESPONSIVE MOBILE
===================================== */

@media (max-width: 768px){

    .table-toolbar{

        flex-direction:column;

        align-items:stretch;

        gap:12px;

    }

    .table-toolbar form{

        display:flex;

        flex-direction:column;

        gap:10px;

        width:100%;

    }

    .table-toolbar form input{

        width:100% !important;

        min-width:unset;

    }

    .table-toolbar form button{

        width:100%;

    }

    .btn-add-guru{

        width:100%;

    }

}

@media (max-width:768px){

    .action-buttons{

        display:flex;

        justify-content:center;

        gap:6px;

    }

    .action-buttons .btn{

        width:40px;

        height:40px;

        padding:0;

    }

}

/* =====================================
   DATA GURU MOBILE
===================================== */

@media (max-width:768px){

    #searchForm{

        width:100% !important;

        display:flex !important;

        flex-direction:column;

        gap:10px;

    }

    #searchForm input{

        width:100%;

    }

    #searchForm button{

        width:100%;

    }

}

.stats-grid{

    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                220px,
                1fr
            )
        );

    gap:20px;

    margin-bottom:30px;

}

.stat-card{

    background:#fff;

    border-radius:16px;

    padding:22px;

    box-shadow:
        0 4px 12px rgba(
            0,
            0,
            0,
            0.05
        );

}

.stat-card h2{

    margin-top:10px;

    font-size:34px;

    font-weight:700;

    color:#0f172a;

}

.stat-label{

    color:#64748b;

    font-size:14px;

}

.stat-card.warning{

    background:#fef3c7;

}

.stat-card.info{

    background:#dbeafe;

}

.stat-card.success{

    background:#dcfce7;

}

/* =====================================
   LOGIN
===================================== */

.login-container{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:20px;

}

.login-card{

    width:420px;

    background:white;

    border-radius:20px;

    padding:40px;

    box-shadow:
        0 10px 25px rgba(
            0,
            0,
            0,
            0.08
        );

}

.login-logo{

    text-align:center;

    margin-bottom:30px;

}

.login-logo h1{

    color:#0f172a;

    margin-bottom:10px;

}

.login-logo p{

    color:#64748b;

    line-height:1.6;

}

.login-error{

    background:#fee2e2;

    color:#b91c1c;

    padding:12px;

    border-radius:10px;

    margin-bottom:20px;

}

.btn-login{

    width:100%;

    margin-top:10px;

}

.login-footer{

    text-align:center;

    margin-top:25px;

    color:#94a3b8;

    font-size:13px;

}