/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #f4f6f8;
    color: #333;
}

/* ================= LOGIN ================= */
.login-page {
    height: 100vh;
    background: #1f8b6b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.login-title {
    color: white;
    font-size: 28px;
    margin-bottom: 25px;
}

.login-card {
    background: white;
    padding: 35px;
    width: 360px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.login-card input {
    width: 100%;
    padding: 12px;
    margin-bottom: 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.login-card button {
    width: 100%;
    background: #1f8b6b;
    color: white;
    padding: 12px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
}

/* ================= LAYOUT ================= */
.container {
    display: flex;
    height: 100vh;
}

/* ================= SIDEBAR ================= */
.sidebar {
    width: 260px;
    background: #1f8b6b;
    color: white;
    padding: 25px 20px;
}

.sidebar h2 {
    margin-bottom: 30px;
}

.sidebar ul {
    list-style: none;
}

.sidebar ul li {
    padding: 14px;
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 10px;
}

.sidebar ul li:hover,
.sidebar ul li.active {
    background: #7ddc9c;
    color: #000;
}

/* ================= MAIN ================= */
.main {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}

/* ================= TOPBAR ================= */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

/* ================= PAGE TITLE (LUAR BOX) ================= */
.page-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* ================= CARDS ================= */
.cards {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.card {
    background: white;
    padding: 22px;
    width: 220px;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.card p {
    color: #777;
    font-size: 14px;
}

.card h2 {
    font-size: 28px;
}

/* ================= CHARTS (TIDAK DIUBAH) ================= */
.charts {
    display: flex;
    gap: 20px;
}

.chart-box {
    flex: 1;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.chart-title {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.chart-box canvas {
    width: 100% !important;
    height: 260px !important;
}

/* ================= BOX UTAMA ================= */
.box {
    background: #ffffff;
    padding: 22px;
    border-radius: 14px;
    border: 2px solid #7ddc9c; /* hijau tipis */
}

/* ================= BOX HEADER ================= */
.box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.box-header h3 {
    font-size: 18px;
    font-weight: 600;
}

/* ================= SEARCH (HIJAU + IKON) ================= */
.search-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e6f5ee;
    border: 1px solid #7ddc9c;
    border-radius: 10px;
    padding: 6px 12px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 160px;
    font-size: 13px;
}

.search-icon {
    font-size: 14px;
    color: #1f8b6b;
}

/* ================= TABLE ================= */
.table-wrapper {
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    overflow: hidden;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #f5f5f5; /* abu-abu sangat muda */
}

thead th {
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    border: 1px solid #e0e0e0;
}

tbody td {
    padding: 12px;
    font-size: 13px;
    text-align: center;
    border: 1px solid #e0e0e0;
}

tbody tr:hover {
    background: #fafafa;
}

td .btn {
    margin: 0 2px;
}

/* ================= BUTTON ================= */
.btn {
    padding: 7px 12px;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    cursor: pointer;
}

.btn-add {
    background: #1f8b6b;
    color: white;
}

.btn-edit {
    background: #f0ad4e;
    color: white;
}

.btn-delete {
    background: #d9534f;
    color: white;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
    .charts {
        flex-direction: column;
    }

    .cards {
        flex-direction: column;
    }
}

/* ================= MODAL ================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-card {
    background: white;
    width: 420px;
    padding: 25px;
    border-radius: 16px;
    border: 2px solid #7ddc9c;
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.modal-card h3 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    font-size: 13px;
    margin-bottom: 6px;
    display: block;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* ================= ADMIN TOPBAR ================= */
.admin {
    display: flex;
    align-items: center;
    gap: 10px;
}

.admin-name {
    font-size: 18px;      
    font-weight: 600;
    color: #333;
}

.admin-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1f8b6b;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    transition: 0.2s;
}

.admin-avatar i {
    color: white;
    font-size: 18px;
}

.admin-avatar:hover {
    background: #15916f;
}

/* Container untuk menempatkan kartu di tengah halaman */
.setting-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
}

/* Kartu Utama dengan border hijau tipis */
.setting-card {
    background: white;
    border: 1px solid #7ddc9c;
    border-radius: 15px;
    padding: 30px 40px;
    width: 450px; /* Lebar kartu sesuai gambar */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Judul di dalam kartu */
.card-title {
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: #000;
    text-align: left;
}

/* Grup Input */
.input-group {
    margin-bottom: 15px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #7ddc9c; /* Border hijau pada input */
    border-radius: 12px; /* Membuat input membulat (rounded) */
    font-size: 0.9rem;
    color: #333;
    outline: none;
    background-color: #fff;
}

/* Tombol Edit Hijau Lebar */
.btn-edit-full {
    width: 100%;
    background-color: #1f8b6b; /* Warna hijau gelap sesuai gambar */
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.btn-edit-full:hover {
    background-color: #166d54;
}

/* Styling Judul Halaman (Sama dengan halaman sebelumnya) */
.page-title {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 30px;
    color: #000;
}
