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

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


body {
    font-family: "Segoe UI", Arial, sans-serif;
    background: linear-gradient(135deg,
            #eefaf5 0%,
            #f8fffc 50%,
            #e5f6ee 100%);

    color: #263238;
    min-height: 100vh;
}


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

.page-container {
    width: 96%;
    max-width: 1800px;
    margin: 30px auto 60px;
}


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

.page-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    padding: 30px 34px;

    margin-bottom: 28px;

    background: #ffffff;

    border-radius: 22px;

    box-shadow: 0 8px 25px rgba(0, 90, 60, 0.08);
}


/* =====================================================
   HEADER LEFT
===================================================== */

.header-left {

    display: flex;

    align-items: center;

    gap: 18px;

    min-width: 0;
}


/* =====================================================
   TOMBOL KEMBALI
===================================================== */

.btn-back {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    background: #075f48;

    color: white;

    text-decoration: none;

    padding: 12px 20px;

    border-radius: 12px;

    font-weight: 700;

    font-size: 16px;

    transition: 0.2s;
}


.btn-back:hover {

    background: #f4d35e;

    color: #087443;
    transform: translateX(-3px);
}


/* =====================================================
   ICON HEADER
===================================================== */

.header-icon {

    width: 70px;

    height: 70px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius: 20px;

    background: #dff4ea;

    font-size: 34px;
}


/* =====================================================
   JUDUL
===================================================== */

.header-title h1 {

    margin: 0 0 5px;

    color: #087443;

    font-size: 32px;

    font-weight: 700;
}


.header-title p {

    margin: 0;

    color: #72817b;

    font-size: 15px;
}


/* =====================================================
   TOMBOL TAMBAH
===================================================== */

.btn-add {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding: 14px 22px;

    border-radius: 12px;

    background: #078347;

    color: #ffffff;

    text-decoration: none;

    font-size: 15px;

    font-weight: 700;

    white-space: nowrap;

    box-shadow: 0 8px 18px rgba(8, 116, 67, .20);

    transition: all .2s ease;
}


.btn-add:hover {

    background: #066c3b;

    transform: translateY(-2px);

    box-shadow: 0 11px 22px rgba(8, 116, 67, .28);
}


.btn-add span {

    font-size: 20px;

    line-height: 1;
}


/* =====================================================
   STATISTIK
===================================================== */

.stat-grid {

    display: grid;

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

    gap: 20px;

    margin-bottom: 25px;
}


.stat-card {

    background: white;

    border-radius: 20px;

    padding: 22px;

    display: flex;

    align-items: center;

    gap: 18px;

    border: 1px solid #e3eee9;

    box-shadow:
        0 8px 25px rgba(0, 90, 60, 0.07);

    transition: 0.25s;
}


.stat-card:hover {

    transform: translateY(-4px);

    box-shadow:
        0 14px 30px rgba(0, 90, 60, 0.12);
}


.stat-icon {

    width: 60px;
    height: 60px;

    border-radius: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 28px;
}


.total .stat-icon {

    background: #e3f6ed;
}


.male .stat-icon {

    background: #e6f0ff;
}


.female .stat-icon {

    background: #fff0f5;
}


.stat-content {

    display: flex;

    flex-direction: column;

    gap: 3px;
}


.stat-content span {

    color: #718078;

    font-size: 14px;
}


.stat-content strong {

    font-size: 30px;

    color: #087443;

    line-height: 1;
}


.stat-content small {

    color: #8b9792;

    font-size: 12px;
}


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

.content-card {

    background: white;

    border-radius: 22px;

    overflow: hidden;

    border: 1px solid #e2eee9;

    box-shadow:
        0 10px 30px rgba(0, 90, 60, 0.08);
}


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

.content-header {

    padding: 25px 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid #edf2ef;
}


.content-header h2 {

    color: #087443;

    font-size: 23px;

    margin-bottom: 5px;
}


.content-header p {

    color: #78847f;

    font-size: 14px;
}


.data-info {

    color: #78847f;

    font-size: 14px;

    display: flex;

    align-items: center;

    gap: 8px;
}


.data-count {

    background: #e5f5ed;

    color: #087443;

    font-size: 15px;

    font-weight: 700;

    padding: 8px 12px;

    border-radius: 10px;
}


/* =====================================================
   TOOLBAR
===================================================== */

.toolbar {

    padding: 18px 28px;

    display: flex;

    gap: 15px;

    background: #fbfdfc;

    border-bottom: 1px solid #edf2ef;
}


.search-box {

    position: relative;

    flex: 1;
}


.search-icon {

    position: absolute;

    left: 15px;

    top: 50%;

    transform: translateY(-50%);

    font-size: 16px;
}


.search-box input {

    width: 100%;

    height: 46px;

    border: 1px solid #dbe8e2;

    border-radius: 11px;

    padding: 0 15px 0 43px;

    outline: none;

    font-size: 14px;

    background: white;

    transition: 0.2s;
}


.search-box input:focus {

    border-color: #0b8b55;

    box-shadow:
        0 0 0 3px rgba(11, 139, 85, 0.08);
}


.filter-box select {

    height: 46px;

    min-width: 210px;

    border: 1px solid #dbe8e2;

    border-radius: 11px;

    padding: 0 14px;

    background: white;

    color: #43514b;

    outline: none;

    cursor: pointer;
}


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

.table-wrapper {

    width: 100%;

    overflow-x: auto;
}


table {

    width: 100%;

    min-width: 1550px;

    border-collapse: collapse;
}


thead th {

    background: #087b4a;

    color: white;

    padding: 16px 12px;

    text-align: left;

    font-size: 13px;

    font-weight: 700;

    white-space: nowrap;
}


thead th:first-child {

    padding-left: 18px;
}


tbody tr {

    border-bottom: 1px solid #edf2ef;

    transition: 0.2s;
}


tbody tr:hover {

    background: #f5fbf8;
}


tbody td {

    padding: 13px 12px;

    font-size: 13px;

    color: #4d5b55;

    vertical-align: middle;

    white-space: nowrap;
}


.number-cell {

    color: #87938e;

    font-weight: 600;

    padding-left: 18px !important;
}


/* =====================================================
   FOTO
===================================================== */

.profile-photo,
.default-photo {

    width: 45px;

    height: 45px;

    border-radius: 50%;

    object-fit: cover;

    border: 3px solid #e3f3ec;
}


.default-photo {

    display: flex;

    align-items: center;

    justify-content: center;

    background: #e7f5ee;

    font-size: 21px;
}


/* =====================================================
   NAMA
===================================================== */

.name-cell strong {

    color: #155f42;

    font-size: 13px;
}


.nik {

    font-family: monospace;

    color: #5e6c66;

    letter-spacing: 0.3px;
}


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

.badge {

    display: inline-flex;

    align-items: center;

    gap: 5px;

    padding: 6px 9px;

    border-radius: 20px;

    font-size: 11px;

    font-weight: 700;
}


.badge-male {

    color: #2865a8;

    background: #eaf3ff;
}


.badge-female {

    color: #ad4d73;

    background: #fff0f5;
}


.status-badge {

    display: inline-block;

    padding: 6px 9px;

    border-radius: 8px;

    background: #f0f5f2;

    color: #5d6b65;

    font-size: 11px;

    font-weight: 600;
}


/* =====================================================
   AKSI
===================================================== */

.action-buttons {

    white-space: nowrap;
    text-align: center;
}


.btn-edit,
.btn-delete {
    display: inline-block;
    text-decoration: none;
    padding: 8px 13px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    margin: 2px;
    transition: all 0.25s ease;
}


/* =========================================
   TOMBOL EDIT
========================================= */

.btn-edit {

    display: inline-block;

    text-decoration: none;

    background: #e7f4ee;

    color: #087443;

    padding: 7px 12px;

    border-radius: 7px;

    font-size: 11px;

    font-weight: 600;

    margin-right: 5px;

    transition: 0.3s;
}

.btn-edit:hover {

    background: #087443;

    color: white;
}


/* =========================================
   TOMBOL HAPUS
========================================= */

.btn-delete {

    display: inline-block;

    text-decoration: none;

    background: #fdeaea;

    color: #c0392b;

    padding: 7px 12px;

    border-radius: 7px;

    font-size: 11px;

    font-weight: 600;

    transition: 0.3s;
}

.btn-delete:hover {

    background: #c0392b;

    color: white;
}


/* =====================================================
   EMPTY STATE
===================================================== */

.empty-state {

    padding: 70px 20px;

    text-align: center;
}


.empty-icon {

    width: 80px;

    height: 80px;

    margin: 0 auto 18px;

    border-radius: 22px;

    background: #e6f6ee;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 38px;
}


.empty-state h3 {

    color: #087443;

    font-size: 20px;

    margin-bottom: 8px;
}


.empty-state p {

    color: #7c8983;

    margin-bottom: 20px;
}

/* =====================================================
   NO RESULT
===================================================== */

.no-result {

    margin: 20px 28px;

    padding: 15px;

    background: #fff9e6;

    border: 1px solid #f3e0a5;

    border-radius: 10px;

    color: #79621e;

    text-align: center;

    font-size: 14px;
}


/* =====================================================
   SCROLLBAR
===================================================== */

.table-wrapper::-webkit-scrollbar {

    height: 9px;
}


.table-wrapper::-webkit-scrollbar-track {

    background: #f0f5f2;
}


.table-wrapper::-webkit-scrollbar-thumb {

    background: #a8c8ba;

    border-radius: 10px;
}


.table-wrapper::-webkit-scrollbar-thumb:hover {

    background: #087b4a;
}


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

@media (max-width: 900px) {

    .page-container {

        width: 94%;

        margin-top: 20px;
    }


    .page-header {

        flex-direction: column;

        align-items: flex-start;
    }


    .btn-add {

        width: 100%;

        justify-content: center;
    }


    .stat-grid {

        grid-template-columns: 1fr;
    }


    .toolbar {

        flex-direction: column;
    }


    .filter-box select {

        width: 100%;
    }

}


@media (max-width: 600px) {

    .page-header {

        padding: 20px;
    }


    .page-header h1 {

        font-size: 25px;
    }


    .content-header {

        padding: 20px;

        align-items: flex-start;

        gap: 15px;

        flex-direction: column;
    }


    .toolbar {

        padding: 15px;
    }


    .stat-card {

        padding: 18px;
    }

}