.btn-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: #f1f5f9;
    color: #0f172a;
}

.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 270px;
    background: #0f172a;
    color: #e2e8f0;
    padding: 24px 18px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.brand-box h1 {
    margin: 0;
    font-size: 30px;
    letter-spacing: 1px;
}

.brand-box p {
    margin: 6px 0 0;
    color: #94a3b8;
    font-size: 14px;
}

.sidebar-menu {
    margin-top: 24px;
}

.menu-divider {
    border-top: 1px solid #334155;
    margin: 14px 0;
}

.menu-title {
    font-size: 12px;
    letter-spacing: 0.6px;
    color: #94a3b8;
    font-weight: 700;
    margin-bottom: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    text-decoration: none;
    margin-bottom: 5px;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-item i {
    width: 18px;
    text-align: center;
}

.nav-item:hover {
    background: #1e293b;
    color: #ffffff;
}

.nav-item.active {
    background: #15803d;
    color: #ffffff;
}

.main-content {
    flex: 1;
    padding: 28px;
}

.main-title {
    margin: 0 0 16px;
    font-size: 38px;
    line-height: 1.2;
}

.section-title {
    margin: 10px 0 14px;
    font-size: 34px;
}

.top-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.top-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #1e293b;
    background: #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-weight: 600;
}

.top-tab:hover {
    background: #cbd5e1;
}

.top-tab.active {
    background: #15803d;
    color: #ffffff;
}

.placeholder-box,
.card,
.table-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #dbe2ea;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.placeholder-box {
    padding: 18px;
    min-height: 110px;
}

.card {
    padding: 18px;
    margin-bottom: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
}

.form-group input,
.form-group select {
    width: 100%;
    height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 12px;
    font-size: 15px;
    background: #ffffff;
    color: #0f172a;
}

.form-group input:focus,
.form-group select:focus,
.search-form input:focus {
    border-color: #16a34a;
    outline: 2px solid rgba(34, 197, 94, 0.18);
}

.btn-wrap {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 16px;
}

.btn-green {
    display: inline-block;
    border: none;
    background: #15803d;
    color: #ffffff;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.btn-green:hover {
    background: #166534;
}

.btn-secondary {
    display: inline-block;
    background: #64748b;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
}

.btn-secondary:hover {
    background: #475569;
}

.table-tools {
    margin-bottom: 16px;
}

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.search-form input {
    width: 320px;
    max-width: 100%;
    height: 44px;
    border: 1px solid #cfd6dd;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 15px;
    background: #fff;
}

.btn-search,
.btn-reset {
    display: inline-block;
    border: none;
    border-radius: 10px;
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.btn-search {
    background: #057d12;
    color: #fff;
}

.btn-search:hover {
    background: #04640f;
}

.btn-reset {
    background: #e2e8f0;
    color: #1e293b;
}

.btn-reset:hover {
    background: #cbd5e1;
}

.alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-weight: 600;
}

.alert.success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.alert.danger {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    vertical-align: top;
}

thead th {
    background: #f8fafc;
    color: #334155;
    font-size: 14px;
}

tbody tr:hover {
    background: #f8fafc;
}

.aksi-wrap {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ket-list {
    display: grid;
    gap: 4px;
}

.ket-item {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.ket-label {
    width: 86px;
    flex: 0 0 86px;
    font-weight: 600;
}

.btn-edit,
.btn-delete {
    display: inline-block;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
}

.btn-edit {
    background: #f59e0b;
    color: #fff;
}

.btn-edit:hover {
    background: #d97706;
}

.btn-delete {
    background: #dc2626;
    color: #fff;
}

.btn-delete:hover {
    background: #b91c1c;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.dash-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #dbe2ea;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dash-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.10);
}

.dash-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
}

.dash-icon.green   { background: #15803d; }
.dash-icon.blue    { background: #2563eb; }
.dash-icon.orange  { background: #ea580c; }
.dash-icon.purple  { background: #7c3aed; }
.dash-icon.teal    { background: #0d9488; }
.dash-icon.rose    { background: #e11d48; }

.dash-info h3 {
    margin: 0;
    font-size: 26px;
    line-height: 1;
    color: #0f172a;
}

.dash-info p {
    margin: 4px 0 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
}

@media (max-width: 991px) {
    .app {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
        height: auto;
    }

    .main-content {
        padding: 18px;
    }

    .main-title {
        font-size: 30px;
    }
}