/* ==========================================================================
   DKM DIGITAL (DKMD) - COMPACT ADMIN PANEL STYLING
   ========================================================================== */

/* 1. Reset & Global Font Ukuran Proporsional */
body, .main-sidebar, .content-wrapper {
    font-family: 'Poppins', sans-serif !important;
    font-size: 0.875rem !important; /* Ukuran teks keseluruhan lebih ringkas (14px) */
}

/* 2. Sidebar Customization (Lebih Compact & Rapi) */
.main-sidebar {
    font-size: 0.85rem !important;
}

.sidebar-dark-success .nav-sidebar > .nav-item > .nav-link {
    padding: 8px 12px !important; /* Memperkecil jarak atas-bawah menu */
    border-radius: 6px;
    margin-bottom: 3px;
}

.sidebar-dark-success .nav-sidebar > .nav-item > .nav-link p {
    font-size: 0.875rem !important; /* Ukuran tulisan menu sidebar dikecilkan */
}

.sidebar-dark-success .nav-sidebar .nav-header {
    font-size: 0.7rem !important; /* Ukuran teks kategori header sidebar lebih kecil */
    padding: 12px 12px 4px 12px !important;
    letter-spacing: 0.5px;
    color: #adb5bd !important;
}

.brand-link {
    padding: 10px 1rem !important;
    font-size: 0.95rem !important;
}

/* 3. Header Halaman Admin */
.content-header {
    padding: 10px 15px !important;
}

.content-header h1 {
    font-weight: 700;
    color: #0b3d2e;
    font-size: 1.35rem !important;
}

/* 4. Modern Card Styling dengan Garis Tepi Hijau di Atas */
.card {
    border-radius: 10px !important;
    border: none !important;
    border-top: 3px solid #0f5f46 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 1.25rem !important;
}

.card-header {
    background-color: #ffffff !important;
    border-bottom: 1px solid #f0f2f5 !important;
    padding: 0.75rem 1rem !important;
    border-top-left-radius: 10px !important;
    border-top-right-radius: 10px !important;
}

.card-title {
    font-weight: 600;
    color: #0f5f46;
    font-size: 1rem !important;
}

.card-body {
    padding: 1rem !important;
}

/* 5. Compact Table Styling */
.table {
    font-size: 0.875rem !important;
}

.table thead th {
    background-color: #0f5f46 !important;
    color: #ffffff !important;
    border-bottom: none !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 10px !important;
}

.table tbody tr:hover {
    background-color: rgba(15, 95, 70, 0.04) !important;
}

.table td {
    vertical-align: middle !important;
    padding: 10px !important;
    color: #333333;
}

/* 6. Form Input yang Lebih Padat & Rapi */
.form-group {
    margin-bottom: 0.85rem !important;
}

label {
    font-size: 0.85rem !important;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0.3rem !important;
}

.form-control {
    border-radius: 6px !important;
    border: 1px solid #dce2e6 !important;
    padding: 7px 12px !important;
    font-size: 0.875rem !important;
    height: calc(1.5em + 0.75rem + 2px);
    transition: all 0.2s ease;
}

.form-control:focus {
    border-color: #157347 !important;
    box-shadow: 0 0 0 0.15rem rgba(21, 115, 71, 0.15) !important;
}

textarea.form-control {
    height: auto !important;
}

/* 7. Tombol Compact */
.btn {
    font-size: 0.875rem !important;
    padding: 6px 16px !important;
    border-radius: 6px !important;
}

.btn-primary, .btn-success {
    background: linear-gradient(135deg, #0f5f46 0%, #157347 100%) !important;
    border: none !important;
    box-shadow: 0 2px 6px rgba(15, 95, 70, 0.2);
}

.btn-primary:hover, .btn-success:hover {
    background: linear-gradient(135deg, #0b3d2e 0%, #0f5f46 100%) !important;
}