/* ============================================================
   CUSTOM STYLE - SDN Parung Bingung 1
   Tema: Baby Blue - Lembut, segar, dan profesional
   ============================================================ */

/* --- BABY BLUE COLOR PALETTE --- */
:root {
    /* Baby Blue Primary */
    --baby-100: #e8f4fd;
    --baby-200: #B3D9FF;
    --baby-300: #89CFF0;
    --baby-400: #5bc0eb;
    --baby-500: #3BAFDA;
    --baby-600: #2c8fc9;
    
    /* Soft Complementary */
    --soft-green: #7EC8A0;
    --soft-green-dark: #5BA87A;
    --soft-green-light: #d4edda;
    --soft-coral: #F5A0A0;
    --soft-yellow: #F7DC6F;
    --soft-purple: #B39DDB;
    
    /* Neutrals */
    --text-dark: #2c3e50;
    --text-muted: #5D6D7E;
    --text-light: #95A5A6;
    --bg-light: #f0f7fd;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --border-light: #e8f0f8;
    
    /* Legacy aliases for backward compatibility */
    --primary-blue: var(--baby-500);
    --primary-blue-dark: var(--baby-600);
    --primary-blue-light: var(--baby-100);
    --accent-green: var(--soft-green);
    --accent-green-dark: var(--soft-green-dark);
    --accent-green-light: var(--soft-green-light);
    
    /* Logo default */
    --logo-icon: bi-tree-fill;
    
    /* Layout */
    --sidebar-width: 260px;
    --sidebar-collapsed: 0px;
    --header-height: 60px;
    --header-bg: var(--baby-200);
    --header-text: var(--text-dark);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-light);
    /* Gunakan overflow-x: clip (bukan hidden) agar tidak memutus position: sticky
       pada .top-header. overflow-x: hidden membuat body menjadi scroll-container
       yang menyebabkan header "turun"/ikut scroll. */
    overflow-x: clip;
    color: var(--text-dark);
}

/* --- SIDEBAR (Baby Blue Gradient) --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg, linear-gradient(180deg, var(--baby-500) 0%, var(--baby-600) 50%, #2176a8 100%));
    z-index: 1040;
    transition: transform 0.3s ease, background 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 2px 0 15px rgba(59, 175, 218, 0.15);
}

.sidebar::-webkit-scrollbar {
    width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 4px;
}

.sidebar-brand {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.sidebar-brand .brand-icon {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--sidebar-text, #fff);
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.sidebar-brand .brand-icon .sidebar-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.sidebar-brand h5 {
    color: var(--sidebar-text, #fff);
    font-weight: 700;
    font-size: 16px;
    margin: 0;
}

.sidebar-brand small {
    color: var(--sidebar-text, #fff);
    opacity: 0.7;
    font-size: 11px;
    display: block;
}

.sidebar-brand small.brand-sub {
    margin-top: 2px;
    font-size: 10px;
    opacity: 0.55;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}



/* --- SIDEBAR NAV --- */
.sidebar-nav {
    padding: 12px 0;
}

.sidebar-nav .nav-section {
    padding: 8px 20px 4px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--sidebar-text, #fff);
    opacity: 0.5;
    font-weight: 700;
}

.sidebar-nav .nav-item {
    display: block;
    padding: 10px 20px;
    color: var(--sidebar-text, #fff);
    opacity: 0.8;
    text-decoration: none;
    font-size: 13.5px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-nav .nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: var(--sidebar-text, #fff);
    opacity: 1;
    border-left-color: var(--soft-green);
    padding-left: 23px;
}

.sidebar-nav .nav-item.active {
    background: rgba(255,255,255,0.15);
    color: var(--sidebar-text, #fff);
    opacity: 1;
    border-left-color: var(--soft-green);
    font-weight: 600;
}

.sidebar-nav .nav-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-nav .nav-item .badge {
    margin-left: auto;
    background: var(--soft-green);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
}

/* --- MAIN CONTENT --- */
.main-content {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    /* Beri ruang di atas agar konten tidak tertutup header yang diposisikan fixed */
    padding-top: var(--header-height);
    transition: margin-left 0.3s ease;
}

/* --- TOP HEADER / NAVBAR (BABY BLUE THEME) --- */
.top-header {
    background: var(--header-bg, var(--baby-200));
    height: var(--header-height);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 2px 8px rgba(59, 175, 218, 0.08);
    /* Header dipasang tetap (fixed) agar tidak ikut ter-scroll */
    position: fixed;
    top: 0;
    left: var(--sidebar-width);
    right: 0;
    z-index: 1030;
    transition: background 0.3s ease, left 0.3s ease, right 0.3s ease;
}

.top-header .hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--header-text, var(--text-dark));
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.top-header .hamburger:hover {
    background: rgba(0,0,0,0.06);
}

.top-header .page-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--header-text, var(--text-dark));
}

.top-header .page-title i {
    color: var(--baby-500);
    margin-right: 8px;
    font-size: 20px;
}

.top-header .header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-header .header-actions .btn-user-dropdown {
    padding: 6px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    color: var(--header-text, var(--text-dark));
    border: 1px solid rgba(0,0,0,0.1);
    background: rgba(255,255,255,0.5);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.top-header .header-actions .btn-user-dropdown:hover,
.top-header .header-actions .btn-user-dropdown.show {
    background: rgba(255,255,255,0.8);
    border-color: var(--header-text, var(--text-dark));
}

.top-header .header-actions .btn-user-dropdown i {
    font-size: 18px;
}

.top-header .header-actions .btn-user-dropdown::after {
    font-size: 10px;
    opacity: 0.6;
}

.dropdown-menu-user {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 6px;
    min-width: 180px;
    margin-top: 8px !important;
}

.dropdown-menu-user .dropdown-item {
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.dropdown-menu-user .dropdown-item:hover {
    background: var(--baby-100);
}

.dropdown-menu-user .dropdown-item i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-menu-user .dropdown-divider {
    margin: 4px 0;
    opacity: 0.3;
}

/* --- CONTENT AREA --- */
.content-area {
    padding: 24px;
}

/* --- DASHBOARD CARDS --- */
.stat-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 175, 218, 0.06);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 175, 218, 0.12);
}

.stat-card .card-body {
    padding: 20px;
}

.stat-card .stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
}

.stat-card .stat-icon.blue {
    background: var(--baby-100);
    color: var(--baby-500);
}

.stat-card .stat-icon.green {
    background: var(--soft-green-light);
    color: var(--soft-green);
}

.stat-card .stat-icon.info {
    background: #e8f8ff;
    color: var(--baby-400);
}

.stat-card .stat-icon.warning {
    background: #fff8e1;
    color: var(--soft-yellow);
}

.stat-card .stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-card .stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
}

/* --- ACTION BUTTONS (seperti di kelola_banner) --- */
.btn-action {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    transition: all 0.3s;
    border: 1.5px solid transparent;
    text-decoration: none;
}
.btn-action-edit {
    background: #cfe2ff;
    color: #0d6efd;
    border-color: #b8d4fe;
}
.btn-action-edit:hover {
    background: #0d6efd;
    color: #fff;
    border-color: #0d6efd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}
.btn-action-delete {
    background: #f8d7da;
    color: #dc3545;
    border-color: #f5c2c7;
}
.btn-action-delete:hover {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}
.btn-action-view {
    background: #d1e7dd;
    color: #0f5132;
    border-color: #badbcc;
}
.btn-action-view:hover {
    background: #198754;
    color: #fff;
    border-color: #198754;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

/* --- BUTTON CUSTOM --- */
.btn-green {
    background: var(--soft-green);
    border-color: var(--soft-green);
    color: #fff;
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-green:hover {
    background: var(--soft-green-dark);
    border-color: var(--soft-green-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(126, 200, 160, 0.3);
}

.btn-blue {
    background: var(--baby-500);
    border-color: var(--baby-500);
    color: #fff;
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-blue:hover {
    background: var(--baby-600);
    border-color: var(--baby-600);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 175, 218, 0.3);
}

.btn-outline-green {
    border: 1px solid var(--soft-green);
    color: var(--soft-green);
    border-radius: 10px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-outline-green:hover {
    background: var(--soft-green);
    color: #fff;
}

/* --- BADGE CUSTOM --- */
.badge-green {
    background: var(--soft-green-light);
    color: var(--soft-green-dark);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

.badge-blue {
    background: var(--baby-100);
    color: var(--baby-600);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
}

/* --- TABLE --- */
.table-custom {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(59, 175, 218, 0.04);
}

.table-custom thead {
    background: linear-gradient(135deg, var(--baby-500), var(--baby-600));
    color: #fff;
}

.table-custom thead th {
    font-weight: 600;
    font-size: 13px;
    padding: 12px 16px;
    border: none;
}

.table-custom tbody td {
    padding: 12px 16px;
    vertical-align: middle;
    font-size: 13px;
}

.table-custom tbody tr:hover {
    background: var(--baby-100);
}

/* --- CARD CUSTOM --- */
.card-custom {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(59, 175, 218, 0.06);
    transition: all 0.3s;
}

.card-custom .card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-light);
    padding: 16px 20px;
    font-weight: 600;
    color: var(--text-dark);
}

.card-custom .card-header i {
    color: var(--baby-500);
}

/* --- FORM --- */
.form-custom .form-control,
.form-custom .form-select {
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
    border: 1.5px solid var(--border-light);
    transition: all 0.3s;
}

.form-custom .form-control:focus,
.form-custom .form-select:focus {
    border-color: var(--baby-500);
    box-shadow: 0 0 0 3px rgba(59, 175, 218, 0.15);
}

.form-custom .form-label {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* --- MODAL CUSTOM --- */
.modal-custom .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
}

.modal-custom .modal-header {
    background: linear-gradient(135deg, var(--baby-500), var(--baby-600));
    color: #fff;
    border: none;
    padding: 16px 20px;
}

.modal-custom .modal-header .btn-close {
    filter: brightness(0) invert(1);
}

/* --- ALERT --- */
.alert-green {
    background: var(--soft-green-light);
    border: none;
    color: #2d6a4f;
    border-radius: 12px;
}

.alert-blue {
    background: var(--baby-100);
    border: none;
    color: #1a5276;
    border-radius: 12px;
}

/* --- PRINT STYLES --- */
@media print {
    .sidebar, .top-header, .no-print { display: none !important; }
    .main-content { margin-left: 0 !important; padding: 0 !important; }
    .content-area { padding: 20px !important; }
    .card-custom { box-shadow: none !important; }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
    }

    .top-header {
        left: 0;
    }

    .top-header .hamburger {
        display: block;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1035;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .content-area {
        padding: 16px;
    }

    .stat-card .stat-value {
        font-size: 20px;
    }

    .top-header .page-title {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .stat-card .card-body {
        padding: 16px;
    }

    .table-responsive table {
        font-size: 12px;
    }

    .content-area {
        padding: 12px;
    }
}

/* --- ANIMATIONS --- */
.fade-in {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- BREADCRUMB --- */
.breadcrumb-custom {
    background: transparent;
    padding: 0;
    margin-bottom: 16px;
}

.breadcrumb-custom .breadcrumb-item {
    font-size: 13px;
}

.breadcrumb-custom .breadcrumb-item a {
    color: var(--baby-500);
    text-decoration: none;
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--text-muted);
}

/* --- BANNER HEADER CARD (untuk semua halaman dashboard) --- */
.banner-header-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    overflow: hidden;
    position: relative;
}
.banner-header-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--baby-500), var(--soft-green), var(--baby-500));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}
@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.banner-header-card .card-body {
    padding: 20px 24px;
}
.banner-header-card h4 {
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.banner-header-card h4 .icon-wrap {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--baby-100), #e8f4fd);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--baby-500);
    flex-shrink: 0;
}
.banner-header-card p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 6px 0 0 54px;
}
.banner-header-card .btn-add-header {
    background: linear-gradient(135deg, var(--baby-500), var(--baby-600));
    border: none;
    border-radius: 12px;
    padding: 10px 24px;
    font-weight: 600;
    color: #fff;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(59, 175, 218, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.banner-header-card .btn-add-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(59, 175, 218, 0.35);
    color: #fff;
}
.banner-header-card .btn-add-header i {
    font-size: 18px;
}

/* --- WELCOME CARD DASHBOARD --- */
.welcome-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--baby-500) 0%, var(--baby-600) 50%, #1a6b9e 100%);
    box-shadow: 0 8px 30px rgba(59, 175, 218, 0.25);
    transition: all 0.3s ease;
}
.welcome-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(59, 175, 218, 0.35);
}
.welcome-card .welcome-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f6d365, #fda085);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    flex-shrink: 0;
}
.welcome-card .welcome-greeting {
    color: #fff;
    font-weight: 700;
    font-size: 22px;
}
.welcome-card .welcome-subtitle {
    color: rgba(255,255,255,0.85);
    font-size: 13px;
}
.welcome-card .welcome-desc {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    line-height: 1.6;
    max-width: 600px;
}
.welcome-card .welcome-quick-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.welcome-card .welcome-stat-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 6px 14px;
    border-radius: 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.welcome-card .welcome-stat-item i {
    font-size: 15px;
}
.welcome-card .welcome-illustration {
    width: 140px;
    height: 140px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    color: rgba(255,255,255,0.7);
    border: 3px solid rgba(255,255,255,0.2);
}

/* --- SMALL STAT CARDS --- */
.stat-card-sm {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(59, 175, 218, 0.06);
    height: 100%;
}
.stat-card-sm:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 175, 218, 0.12);
}
.stat-card-sm .card-body {
    padding: 20px 12px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 160px;
}
.stat-card-sm .stat-icon-sm {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 10px;
    flex-shrink: 0;
}
.stat-card-sm .stat-icon-sm.blue {
    background: var(--baby-100);
    color: var(--baby-500);
}
.stat-card-sm .stat-icon-sm.green {
    background: var(--soft-green-light);
    color: var(--soft-green);
}
.stat-card-sm .stat-icon-sm.info {
    background: #e8f8ff;
    color: var(--baby-400);
}
.stat-card-sm .stat-icon-sm.warning {
    background: #fff8e1;
    color: #f39c12;
}
.stat-card-sm .stat-icon-sm.purple {
    background: #f0e8ff;
    color: #8e44ad;
}
.stat-card-sm .stat-icon-sm.orange {
    background: #fef0e0;
    color: #e67e22;
}
.stat-card-sm .stat-label-sm {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
}
.stat-card-sm .stat-value-sm {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}
.stat-card-sm .stat-footer {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 2px;
}

/* --- PAGE HEADER --- */
.page-header {
    margin-bottom: 24px;
}

.page-header h4 {
    font-weight: 700;
    color: var(--text-dark);
}

.page-header p {
    color: var(--text-muted);
    font-size: 13px;
    margin: 0;
}

/* --- EMPTY STATE --- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 16px;
}

.empty-state h6 {
    color: var(--text-muted);
    font-weight: 600;
}

/* --- FOOTER DASHBOARD --- */
.dashboard-footer {
    text-align: center;
    padding: 20px 24px;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 12px;
}

.dashboard-footer .green {
    color: var(--soft-green);
    font-weight: 600;
}

/* ============================================================
   DATATABLES CUSTOMIZATION
   ============================================================ */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 12px;
}
.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border-radius: 10px;
    padding: 6px 12px;
    border: 1.5px solid var(--border-light);
    font-size: 13px;
    outline: none;
    transition: all 0.3s;
}
.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--baby-500);
    box-shadow: 0 0 0 3px rgba(59, 175, 218, 0.15);
}
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    font-weight: 500;
    font-size: 13px;
    color: var(--text-muted);
}
.dataTables_wrapper .dataTables_info {
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 16px;
}
.dataTables_wrapper .dataTables_paginate {
    padding-top: 12px;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    padding: 5px 12px !important;
    margin: 0 2px;
    font-size: 13px;
    transition: all 0.3s;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--baby-500) !important;
    border-color: var(--baby-500) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(59, 175, 218, 0.3);
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.current) {
    background: var(--baby-100) !important;
    border-color: var(--baby-100) !important;
    color: var(--baby-500) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    opacity: 0.4;
}
.dataTables_wrapper .dt-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 8px;
}
.dataTables_wrapper .dt-buttons .btn {
    border-radius: 8px;
    font-size: 12px;
    padding: 5px 12px;
    font-weight: 500;
    transition: all 0.3s;
}
.dataTables_wrapper .dt-buttons .btn:hover {
    transform: translateY(-1px);
}
.table-datatable thead th {
    white-space: nowrap;
    position: relative;
}
.table-datatable thead th.sorting:after,
.table-datatable thead th.sorting_asc:after,
.table-datatable thead th.sorting_desc:after {
    opacity: 0.6;
}
table.dataTable.no-footer {
    border-bottom: 1px solid var(--border-light) !important;
}
table.dataTable tbody tr.selected {
    background: var(--baby-100) !important;
}
.table-datatable tbody td .badge {
    font-size: 11px;
}

/* DataTables Responsive */
.table-datatable > thead > tr > th:not(:first-child):not(:last-child),
.table-datatable > tbody > tr > td:not(:first-child):not(:last-child) {
    position: relative;
}
div.dataTables_wrapper div.dataTables_filter {
    text-align: right;
}
@media (max-width: 768px) {
    div.dataTables_wrapper div.dataTables_filter {
        text-align: left;
    }
    div.dataTables_wrapper div.dataTables_length {
        text-align: left;
    }
    .dataTables_wrapper .dt-buttons {
        justify-content: center;
    }
}

/* ============================================================
   LANDING PAGE NAVBAR (Frontend)
   ============================================================ */

/* Navbar Landing */
.navbar-landing {
    background: linear-gradient(135deg, var(--baby-500), var(--baby-600)) !important;
    box-shadow: 0 4px 20px rgba(59, 175, 218, 0.3);
    padding: 14px 0;
    transition: all 0.3s;
}
.navbar-landing .navbar-brand {
    font-weight: 700;
    color: #fff;
    font-size: 26px;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.3px;
}
.navbar-landing .navbar-brand i {
    font-size: 36px;
}
.navbar-landing .navbar-brand img {
    width: 44px !important;
    height: 44px !important;
    object-fit: contain;
}
.navbar-landing .nav-link {
    color: rgba(255,255,255,0.92) !important;
    font-weight: 600;
    font-size: 16px;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s;
    letter-spacing: 0.2px;
}
.navbar-landing .nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.18);
}
.navbar-landing .btn-login-nav {
    background: var(--soft-green);
    color: #fff !important;
    padding: 9px 28px !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 16px;
}
.navbar-landing .btn-login-nav:hover {
    background: var(--soft-green-dark);
    transform: translateY(-2px);
}

/* Navbar dropdown */
.navbar-landing .dropdown-menu {
    background: #fff;
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 10px;
    margin-top: 10px !important;
    min-width: 240px;
}
.navbar-landing .dropdown-menu .dropdown-item {
    font-size: 16px;
    font-weight: 500;
    padding: 12px 18px;
    border-radius: 10px;
    color: var(--text-dark);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}
.navbar-landing .dropdown-menu .dropdown-item:hover {
    background: var(--baby-100);
    color: var(--baby-500);
    transform: translateX(6px);
}
.navbar-landing .dropdown-menu .dropdown-item i {
    font-size: 19px;
    color: var(--baby-500);
    width: 24px;
    text-align: center;
}
.navbar-landing .dropdown-menu .dropdown-item.active {
    background: var(--baby-500);
    color: #fff;
}
.navbar-landing .dropdown-menu .dropdown-item.active i {
    color: #fff;
}
/* Navbar active page indicator */
@keyframes activeUnderlineIn {
    0% {
        transform: translateX(-50%) scaleX(0);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) scaleX(1);
        opacity: 1;
    }
}
@keyframes activeBgIn {
    0% {
        background: rgba(255,255,255,0);
    }
    100% {
        background: rgba(255,255,255,0.22);
    }
}
.navbar-landing .nav-link.active,
.navbar-landing .nav-link.active:hover {
    background: rgba(255,255,255,0.22) !important;
    position: relative;
}
.navbar-landing .nav-link.active {
    animation: activeBgIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.navbar-landing .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 22px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    box-shadow: 0 0 8px rgba(255,255,255,0.5);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    animation: activeUnderlineIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
}
.navbar-landing .dropdown.show > .nav-link.dropdown-toggle {
    background: rgba(255,255,255,0.22);
}

/* ============================================================
   LANDING PAGE FOOTER (Frontend)
   ============================================================ */

/* Footer Landing - Base styles (background/color di-override oleh .footer-landing-custom) */
.footer-landing {
    padding: 30px 0 15px;
    margin-top: 60px;
}
.footer-landing h5 {
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 12px;
}
.footer-landing p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 6px;
}
.footer-landing .footer-link {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    display: block;
    padding: 4px 0;
    font-size: 15px;
    transition: all 0.3s;
}
.footer-landing .footer-link:hover {
    color: #fff;
    padding-left: 4px;
}
.footer-landing .social-link {
    display: inline-flex;
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    margin-right: 8px;
    font-size: 17px;
    transition: all 0.3s;
}
.footer-landing .social-link:hover {
    background: var(--baby-500);
    transform: translateY(-2px);
}
.footer-landing .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 14px;
    margin-top: 24px;
    font-size: 14px;
}
.footer-landing .footer-bottom .green { color: #ffffff; }

/* --- TRANSITION EFFECTS ON GREEN ELEMENTS --- */
.btn-success, 
.badge-success,
.bg-success {
    background: var(--soft-green) !important;
}

.text-green {
    color: var(--soft-green) !important;
}

.border-green {
    border-color: var(--soft-green) !important;
}