@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --army-primary: #2d3e2f;    /* Hijau Army Gelap */
    --army-light: #3e5240;      /* Hijau Army Terang */
    --army-accent: #8FA891;     /* Aksen Hijau Lembut */
    --dyc-red: #d32f2f;         /* Merah Professional */
    --dyc-gold: #c5a059;        /* Emas Muted */
    --bg-body: #f4f7f6;         /* Abu-abu sangat muda */
    --text-dark: #2c3e50;
    --text-muted: #95a5a6;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

/* --- NAVBAR PREMIUM --- */
.navbar {
    background: linear-gradient(135deg, var(--army-primary) 0%, #1b261d 100%) !important;
    border-bottom: 3px solid var(--dyc-gold);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding-top: 15px;
    padding-bottom: 15px;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.3rem;
}

/* --- MAIN CARD CONTAINER --- */
.main-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    border: none;
    box-shadow: 0 10px 40px rgba(45, 62, 47, 0.05); /* Bayangan hijau sangat halus */
}

h1 {
    color: var(--army-primary);
    font-weight: 800;
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

h1::after {
    content: '';
    display: block;
    width: 60%;
    height: 4px;
    background: var(--dyc-red);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* --- BUTTONS --- */
.btn-army {
    background: var(--army-primary);
    color: white;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(45, 62, 47, 0.3);
}

.btn-army:hover {
    background: var(--army-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 62, 47, 0.4);
    color: white;
}

.btn-outline-army {
    border: 2px solid var(--army-primary);
    color: var(--army-primary);
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline-army:hover {
    background: var(--army-primary);
    color: white;
    transform: translateY(-2px);
}

/* --- STATS CARDS --- */
.stat-card {
    background: white;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.bg-army-light { background: #e8f5e9; color: var(--army-primary); }
.bg-gold-light { background: #fff8e1; color: var(--dyc-gold); }
.bg-red-light { background: #ffebee; color: var(--dyc-red); }

/* --- PREMIUM FLOATING TABLE (BAGIAN UTAMA) --- */
/* Reset Table Default */
table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 12px !important; /* Jarak antar baris */
    width: 100% !important;
    margin-top: 10px !important;
}

/* Header Tabel */
#data-table thead th {
    background: transparent !important;
    color: var(--text-muted) !important;
    font-size: 0.75rem !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border: none !important;
    padding: 0 20px 10px 20px;
}

/* Baris Tabel (Card Style) */
#data-table tbody tr {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); /* Bayangan lembut */
    transition: all 0.2s ease;
    border-radius: 12px;
}

#data-table tbody tr:hover {
    transform: scale(1.01); /* Efek zoom sedikit */
    box-shadow: 0 8px 25px rgba(45, 62, 47, 0.1); /* Bayangan hijau saat hover */
    z-index: 2;
    position: relative;
    cursor: default;
}

/* Sel Tabel */
#data-table tbody td {
    padding: 20px !important;
    vertical-align: middle;
    border: none !important; /* Hapus garis pembatas */
    font-size: 0.95rem;
    color: var(--text-dark);
}

/* Membulatkan sudut baris tabel */
#data-table tbody td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
    font-weight: 700;
    color: var(--army-primary); /* Nomor urut berwarna hijau */
}
#data-table tbody td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Zebra Striping (Bootstrap default override) */
.table-striped > tbody > tr:nth-of-type(odd) > * {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* --- DATATABLES PAGINATION & SEARCH --- */
/* Search Input */
.dataTables_filter input {
    border: 2px solid #eee;
    border-radius: 50px;
    padding: 8px 20px;
    transition: 0.3s;
    outline: none;
}
.dataTables_filter input:focus {
    border-color: var(--army-primary);
    box-shadow: 0 0 0 3px rgba(45, 62, 47, 0.1);
}

/* Pagination Buttons */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 50% !important;
    width: 35px;
    height: 35px;
    padding: 0 !important;
    margin: 0 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none !important;
    background: #f8f9fa !important;
    color: var(--text-dark) !important;
    font-weight: 600;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--army-light) !important;
    color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: var(--army-primary) !important;
    color: white !important;
    box-shadow: 0 4px 10px rgba(45, 62, 47, 0.3);
}

/* --- FILTER AREA --- */
.filter-area {
    background: #fdfdfd;
    border: 1px dashed var(--army-primary);
}

.form-select {
    border-radius: 10px;
    border: 1px solid #eee;
    padding: 12px;
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 768px) {
    .main-card { padding: 20px; }
    h1 { font-size: 1.5rem; }
    .stats-number { font-size: 2rem; }
}