/* ==========================================================================
   CUSTOM DASHBOARD CORE CSS 
   Pengganti template bawaan - Modern, Clean, Professional
   ========================================================================== */

:root {
    --primary-color: #E46C0A; /* Oranye Utama */
    --sidebar-bg: #1e293b;    /* Slate Dark */
    --sidebar-width: 260px;
    --header-height: 82px;
    --bg-body: #f4f7f6;
    --text-muted: #94a3b8;
}

body {
    background-color: var(--bg-body);
    font-family: 'Nunito', sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}



/* =========================================
   1. STRUKTUR UTAMA (WRAPPER & PANEL)
   ========================================= */
.wrapper {
    position: relative;
    top: 0;
    height: 100vh;
}

.main-panel {
    position: relative;
    min-height: 100vh;
    float: right;
    width: calc(100% - var(--sidebar-width));
    padding-top: var(--header-height);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.content {
    padding: 30px;
    flex: 1; /* Mendorong footer ke bawah */
}

/* =========================================
   2. HEADER & NAVBAR 
   ========================================= */
.main-header {
    position: fixed;
    z-index: 1000;
    width: 100%;
    top: 0;
    left: 0;
    display: flex;
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: var(--header-height);
}

.logo-header {
    width: var(--sidebar-width);
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: white;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.navbar-header {
    width: calc(100% - var(--sidebar-width));
    height: var(--header-height);
    display: flex;
    align-items: center;
    padding: 0 20px;
}

/* Sembunyikan tombol toggle di Desktop */
/* =========================================
   9. SIDEBAR TOGGLE & MINI MODE
   ========================================= */

/* Pastikan tombol selalu muncul */
.navbar-toggler {
    border: none;
    background: transparent;
    cursor: pointer;
    display: none; /* Menampilkan tombol di Desktop */
}



/* Ukuran ikon toggler */
.navbar-toggler i, .topbar-toggler i {
    font-size: 22px;
}

/* --- Efek Sidebar Mini (Khusus Layar Besar / Desktop) --- */
@media (min-width: 992px) {
    /* Ketika class sidebar-mini aktif di body */
    .sidebar-mini .sidebar {
        width: 70px; /* Sidebar mengecil */
    }
    .sidebar-mini .main-panel {
        width: calc(100% - 70px);
    }
    .sidebar-mini .logo-header {
        width: 70px;
        padding: 0;
        justify-content: center;
        overflow: hidden;
    }
    .sidebar-mini .navbar-header {
        width: calc(100% - 70px);
    }
    
    /* Sembunyikan teks saat sidebar mengecil */
    .sidebar-mini .sidebar .user .info > a > span,
    .sidebar-mini .sidebar .nav .nav-item a span,
    .sidebar-mini .sidebar .nav .nav-item a .caret,
    .sidebar-mini .logo-header span,
    .sidebar-mini .logo-header img /* Jika pakai gambar */ {
        display: none !important;
    }
    
    /* Pusatkan ikon menu */
    .sidebar-mini .sidebar .nav .nav-item a i {
        margin-right: 0;
        text-align: center;
        width: 100%;
        font-size: 22px;
    }
    
    /* Pusatkan foto profil */
    .sidebar-mini .sidebar .user {
        justify-content: center;
        padding: 15px 0;
    }
    .sidebar-mini .sidebar .user .photo {
        margin: 0;
    }
    
    /* Sembunyikan submenu saat mode mini */
    .sidebar-mini .sidebar .nav .collapse {
        display: none !important;
    }
}

/* Memperbesar ukuran ikon agar mudah diklik di HP */
.navbar-toggler i, 
.topbar-toggler i {
    font-size: 22px;
}

/* Dropdown Navbar Notifikasi & User */
.navbar-header .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 250px;
}

/* =========================================
   3. SIDEBAR & MENU STYLING
   ========================================= */
.sidebar {
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    z-index: 999;
    overflow-y: auto;
    transition: all 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

/* Bagian Profil Admin di Sidebar */
.sidebar .user {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.sidebar .user .photo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.sidebar .user .info a {
    color: #f8fafc;
    text-decoration: none;
    font-weight: 600;
    display: block;
}

.sidebar .user .info .user-level {
    display: block;
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 3px;
    font-weight: normal;
}

/* Desain Item Menu */
.sidebar .nav {
    list-style: none;
    padding: 15px 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.sidebar .nav .nav-item {
    margin-bottom: 4px;
}

.sidebar .nav .nav-item a {
    color: #cbd5e1;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    border-radius: 0 25px 25px 0;
    margin-right: 15px;
    border-right: none !important;
}

/* Hapus Pseudo-element bawaan template lama jika ada sisa */
.sidebar .nav .nav-item a::before,
.sidebar .nav .nav-item a::after {
    display: none !important;
}

/* Efek Hover & Menu Aktif */
.sidebar .nav .nav-item a:hover,
.sidebar .nav .nav-item.active > a {
    background-color: #334155;
    color: #ffffff;
    border-left: 4px solid var(--primary-color);
}

.sidebar .nav .nav-item a i {
    width: 25px;
    font-size: 18px;
    margin-right: 15px;
    color: var(--text-muted);
    text-align: center;
    transition: all 0.3s ease;
}

.sidebar .nav .nav-item a:hover i,
.sidebar .nav .nav-item.active > a i {
    color: var(--primary-color);
}

/* Styling Submenu Collapse */
.sidebar .nav .collapse .nav {
    padding: 0;
}

.sidebar .nav .collapse li a {
    padding-left: 55px;
    font-size: 13px;
    margin-bottom: 2px;
}

/* =========================================
   4. FOOTER
   ========================================= */
.footer {
    padding: 20px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    margin-top: auto;

    display: flex;
    justify-content: flex-end;
}

/* =========================================
   5. RESPONSIVE (MOBILE VIEW)
   ========================================= */
@media (max-width: 991px) {
    .logo-header {
        width: 100%; 
        justify-content: space-between; /* Menjaga logo di kiri, tombol di kanan */
    }
    
    .navbar-header {
        width: 100%;
        justify-content: flex-end;
        
    }
    
    /* Memunculkan kedua tombol di layar HP/Tablet */
    .navbar-toggler,
    .topbar-toggler {
        display: block;
    }

    .sidebar {
        left: calc(var(--sidebar-width) * -1);
    }
    .main-panel {
        width: 100%;
    }
    
    .sidebar_open .sidebar {
        left: 0;
    }
    .sidebar_open .main-panel {
        transform: translateX(var(--sidebar-width));
    }
}

/* =========================================
   6. FIX DROPDOWN USER & NOTIFIKASI
   ========================================= */

/* Membatasi lebar menu dropdown agar tidak terlalu besar */
.navbar-header .dropdown-menu.dropdown-user {
    width: 250px;
    padding: 10px 0;
}

/* Mengatur kotak identitas user di dalam dropdown */
.dropdown-user .user-box {
    display: flex;
    align-items: center; /* Sejajarkan gambar dan teks di tengah vertikal */
    padding: 10px 15px;
    gap: 15px; /* Jarak antara gambar dan teks */
}

/* Membatasi ukuran gambar profil di dalam dropdown */
.dropdown-user .user-box .u-img img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
}

/* Menyesuaikan ukuran teks nama dan email */
.dropdown-user .user-box .u-text h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b; /* Slate dark */
}

.dropdown-user .user-box .u-text p {
    margin: 3px 0 8px 0;
    font-size: 12px;
    color: var(--text-muted);
}

/* Memperkecil padding pada tombol View Profile */
.dropdown-user .user-box .u-text .btn {
    padding: 4px 10px;
    font-size: 11px;
}

/* Merapikan item dropdown (seperti tombol logout) */
.dropdown-menu .dropdown-item {
    padding: 10px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    transition: background 0.2s;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f1f5f9; /* Efek hover abu-abu sangat muda */
    color: #e11d48; /* Warna merah saat diarahkan (khusus logout) */
}

/* Divider / Garis pemisah */
.dropdown-divider {
    border-top: 1px solid #e2e8f0;
    margin: 5px 0;
}

/* ==========================================================================
   7. KONTEN DASHBOARD (CARDS, TABLES, FORMS, BUTTONS)
   ========================================================================== */

/* --- A. CARDS (Kotak Konten) --- */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 4px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.card .card-header {
    background-color: transparent;
    border-bottom: 1px solid #f1f5f9;
    padding: 20px 25px;
    border-radius: 12px 12px 0 0 !important;
}

.card .card-title {
    margin: 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 700;
}

.card .card-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
}

.card .card-body {
    padding: 25px;
}

/* --- B. TABLES & DATATABLES --- */
/* --- B. TABLES & DATATABLES (Dikembalikan ke Desain Asli) --- */
.table {
    width: 100% !important;
    color: #333; /* Warna teks standar */
}

/* Mengembalikan warna biru/teal khas di header tabel */
.table thead th {
    background-color: #3ea2b4 !important; /* Warna biru/teal sesuai tema asli */
    color: #ffffff !important; /* Teks putih */
    border: none !important;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 15px;
    letter-spacing: 0.5px;
}

.table td {
    padding: 12px 15px;
    vertical-align: middle;
    border-top: 1px solid #ebedf2; /* Garis abu-abu sangat tipis */
    font-size: 14px;
}

/* Baris selang-seling (Striped) standar */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table:hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Pagination DataTables menyesuaikan tema asli */
.page-item.active .page-link {
    background-color: #3ea2b4;
    border-color: #3ea2b4;
    color: white;
}
.page-link {
    color: #3ea2b4;
    border: 1px solid #ebedf2;
    padding: 6px 12px;
    margin: 0 2px;
    border-radius: 4px;
}
.page-link:hover {
    background-color: #ebedf2;
    color: #333;
}

/* --- C. FORM INPUTS --- */

/*     Input    */
.form-group, .form-check {
  margin-bottom: 0;
  padding: 15px 10px;
}

.form-group label, .form-check label {
  margin-bottom: .5rem !important;
  color: #3f4047 !important;
  font-weight: 400;
  font-size: 1rem;
}

.form-inline label {
  margin-bottom: 0 !important;
}

.input-fixed {
  width: 200px;
}

.form-control.input-full {
  width: 100% !important;
}

.has-success .form-control {
  border-color: #59d05d;
  color: #59d05d;
}

.has-error .form-control {
  border-color: #ff646d;
  color: #ff646d;
}

.has-feedback {
  position: relative;
}

.form-control-feedback {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 20px;
}

.has-success .form-control-feedback {
  color: #59d05d;
}

.has-error .form-control-feedback {
  color: #ff646d;
}

.input-group.has-icon {
  border-radius: .25rem;
  border: 1px solid #ced4da;
}
.input-group.has-success, .input-group.has-icon.has-success {
  border-color: 1px solid #59d05d !important;
  color: #59d05d;
}
.input-group.has-error {
  border: 1px solid #ff646d !important;
  color: #ff646d;
}
.input-group.has-icon.has-error {
  border: 1px solid #ff646d !important;
  color: #ff646d;
}
.input-group.has-icon .form-control {
  border-radius: .25rem;
  border: 0px;
  position: relative;
}
.input-group.has-icon .input-group-icon {
  background: transparent;
  border: 0px;
}

.input-square {
  border-radius: 0px !important;
}

.input-pill {
  border-radius: 1.3rem !important;
}

.input-solid {
  background: #e8e8e8 !important;
  border-color: #e8e8e8 !important;
}

.form-control:disabled, .form-control[readonly] {
  background: #e8e8e8 !important;
  border-color: #e8e8e8 !important;
}
.form-control:disabled, .form-control[readonly] {
  opacity: 0.6 !important;
}


/* --- D. BUTTONS --- */
.btn {
    border-radius: 8px;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #c95d07; /* Oranye lebih gelap saat di-hover */
    border-color: #c95d07;
    box-shadow: 0 4px 12px rgba(228, 108, 10, 0.3); /* Efek glowing shadow */
    transform: translateY(-1px); /* Tombol sedikit naik saat di-hover */
}

/* Action Buttons di dalam tabel */
.table .btn {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
}

/* =========================================
   8. FIX NAVBAR DROPDOWN & NOTIFICATION
   ========================================= */

/* Pastikan posisi dropdown menempel di sebelah kanan (right-aligned) agar tidak keluar layar */
.navbar-nav .dropdown-menu {
    position: absolute;
    right: 0 !important;
    left: auto !important;
    min-width: 260px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border: none;
    border-radius: 8px;
    margin-top: 10px;
}

/* --- A. FIX NOTIFICATION BADGE --- */
.nav-item.dropdown .nav-link {
    position: relative; /* Penting agar badge angka merah posisinya relatif ke ikon ini */
}

.notification {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #ef4444; /* Merah */
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    border: 2px solid #E46C0A; /* Border oranye agar menyatu dengan header */
    line-height: 1;
}

/* --- B. FIX KOTAK PROFIL USER --- */
.dropdown-user .user-box {
    display: flex;
    flex-direction: row;
    align-items: center; /* Sejajarkan gambar dan teks di tengah */
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-user .user-box .u-img {
    width: 50px;
    height: 50px;
    margin-right: 15px; /* Jarak antara foto dan teks */
    flex-shrink: 0;
}

.dropdown-user .user-box .u-img img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #f1f5f9;
}

/* Teks nama dan email */
.dropdown-user .user-box .u-text {
    flex: 1;
    overflow: hidden;
}

.dropdown-user .user-box .u-text h4 {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    white-space: nowrap; /* Teks panjang tidak akan turun ke bawah */
    text-overflow: ellipsis;
    overflow: hidden;
}

.dropdown-user .user-box .u-text p {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

/* Tombol View Profile */
.dropdown-user .user-box .u-text .btn {
    padding: 6px 15px;
    font-size: 11px;
    border-radius: 20px; /* Buat pinggirannya lebih melengkung */
    border: 1px solid #E46C0A;
    color: #E46C0A;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s;
}

.dropdown-user .user-box .u-text .btn:hover {
    background: #E46C0A;
    color: #ffffff;
}

/* --- C. FIX TOMBOL LOGOUT --- */
.dropdown-item#btnLogout {
    display: block;
    width: 100%;
    padding: 12px 20px;
    color: #e11d48; /* Merah untuk logout */
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
    cursor: pointer;
    border-radius: 0 0 8px 8px; /* Sudut melengkung di bagian bawah */
}

.dropdown-item#btnLogout i {
    margin-right: 8px;
    font-size: 16px;
}

.dropdown-item#btnLogout:hover {
    background-color: #ffe4e6; /* Hover merah sangat muda */
}

/* ==========================================================================
   9. DESAIN DROPDOWN NOTIFIKASI MODERN (SESUAI REFERENSI)
   ========================================================================== */

/* Kotak utama dropdown notifikasi */
.notif-box {
    width: 320px !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 8px !important;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Header (Judul Atas) */
.notif-header {
    border-bottom: 1px solid #e2e8f0;
    background-color: #ffffff;
}

.notif-header .textnotif {
    font-size: 15px;
    line-height: 1.4;
    color: #334155 !important;
    margin: 0;
}

/* Area Daftar Notifikasi (Bisa di-scroll jika maksimal 4 atau 5 item) */
.notif-center {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* Item Per Baris Notifikasi */
.notif-item {
    display: flex !important;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none !important;
    transition: background-color 0.2s ease;
}

.notif-item:hover {
    background-color: #f8fafc;
}

/* Lingkaran Biru untuk Ikon User */
.notif-icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #1d72f2; /* Warna biru sesuai referensi */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 15px;
    font-size: 20px;
}

/* Teks Nama dan Waktu */
.notif-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.notif-user {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 3px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.notif-time {
    font-size: 12px;
    color: #94a3b8;
}

/* Footer (Tombol Lihat Semua di Bawah) */
.notif-footer {
    border-top: 1px solid #e2e8f0;
    background-color: #ffffff;
}

.notif-footer .see-all {
    font-size: 14px;
    text-decoration: none !important;
    color: #334155 !important;
    transition: background-color 0.2s;
}

.notif-footer .see-all:hover {
    background-color: #f8fafc;
    color: #1d72f2 !important; /* Berubah biru saat dihover */
}


/* nvabar tambahan  */
/* ===== Modern Navbar ===== */
.navbar-header{
    background: linear-gradient(135deg,#E46C0A,#F97316);
    min-height:70px;
    box-shadow:0 6px 20px rgba(0,0,0,.12);
}

.navbar{
    padding:.6rem 1rem;
}

.profile-pic{
    padding:6px 12px;
    border-radius:50px;
    transition:.3s;
}

.profile-pic:hover{
    background:rgba(255,255,255,.15);
}

.profile-pic img{
    width:42px;
    height:42px;
    border-radius:50%;
    border:2px solid rgba(255,255,255,.8);
}

.profile-pic span{
    font-size:15px;
}

.profile-pic small{
    font-size:12px;
    opacity:.9;
}

.nav-link{
    transition:.3s;
}

.nav-link:hover{
    transform:translateY(-2px);
}

.nav-link .la-bell{
    width:42px;
    height:42px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.15);
    transition:.3s;
}

.nav-link .la-bell:hover{
    background:rgba(255,255,255,.25);
}

.dropdown-user{
    margin-top:12px;
    border:none;
    border-radius:18px;
    min-width:340px;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(0,0,0,.18);
}

.user-box{
    background:linear-gradient(135deg,#fff,#fafafa);
}

.user-box img{
    width:70px;
    height:70px;
    border-radius:50%;
}

.dropdown-item{
    padding:12px 18px;
    transition:.25s;
}

.dropdown-item:hover{
    background:#FFF5EC;
    color:#E46C0A;
}

.notif-box{
    margin-top:12px;
    border:none;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(0,0,0,.18);
}

.notif-item{
    display:flex;
    align-items:center;
    padding:14px 18px;
    text-decoration:none;
    transition:.25s;
}

.notif-item:hover{
    background:#FFF5EC;
}

.notif-icon-circle{
    width:45px;
    height:45px;
    border-radius:50%;
    background:#FFE8D5;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#E46C0A;
    margin-right:15px;
}

.notification{
    position:absolute;
    top:-3px;
    right:-3px;
    background:#ef4444;
    color:#fff;
    width:20px;
    height:20px;
    border-radius:50%;
    font-size:11px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:bold;
    border:2px solid #fff;
}
.topbar-nav .nav-item {
    display: flex;
    align-items: center;
}

.topbar-nav .nav-link {
    display: flex;
    align-items: center;
    height: 60px;   /* sesuaikan tinggi navbar */
}

.profile-pic img,
.nav-link img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.la-bell{
    font-size:24px;
}
.card-stats .icon-big {
  font-size: 3em;
  min-height: 64px;
}

// css dari view
 body{
        background:#f5f7fb;
    }

    /* Header */
    .page-header{
        background:#fff;
        padding:25px;
        border-radius:20px;
        box-shadow:0 5px 20px rgba(0,0,0,.06);
    }

    /* Card */
    .card{
        border:none;
        border-radius:20px;
        box-shadow:0 5px 20px rgba(0,0,0,.06);
        overflow:hidden;
    }

    .card-body{
        padding:25px;
    }



 div.dt-buttons{
            float: right;
            margin-left: 15px;
        }

        .dt-button{
            border: none !important;
            border-radius: 10px !important;
            padding: 8px 18px !important;
            font-weight: 500;
            box-shadow: 0 3px 10px rgba(0,0,0,.12);
            transition: all .2s;
            margin-left: 5px;
            
        }

.dt-button:hover{
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0,0,0,.15);
}

/* Search Box */
.dataTables_filter {
    float: right !important;
    /* margin-right: 10px !important; */
    margin-bottom: 15px !important;
}

.dataTables_filter label{
    font-weight: 500;
    color: #555;
}

/* .dataTables_filter input{
    border-radius: 30px !important;
    border: 1px solid #ddd !important;
    padding: 6px 15px !important;
    box-shadow: none !important;
    transition: .2s;
} */

.dataTables_filter input {
    border-radius: 10px !important;
    border: 1px solid #dee2e6 !important;
    padding: 6px 12px !important;
    margin-left: 8px !important;
}

.dataTables_filter input:focus{
    border-color: #4BACC6 !important;
    box-shadow: 0 0 0 .15rem rgba(75,172,198,.15);
}

/* ==========================
   TABLE
========================== */

.table{
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 10px;
    overflow: hidden;
}



.table-responsive{
    border-radius: 15px;
    overflow: hidden;
}

.table-bordered{
    border: 1px solid #edf2f7;
}

/* Header tetap warna lama */
.table thead tr{
    background: #4BACC6;
}

.table thead td,
.table thead th{
    border-color: rgba(255,255,255,.2) !important;
    vertical-align: middle !important;
    font-weight: 600;
}

/* Body */
.table tbody td{
    vertical-align: middle;
    border-color: #f2f2f2;
    font-size: 13px;
}

/* Hover */
.table tbody tr{
    transition: all .2s;
}

.table tbody tr:hover{
    background: #f8fbfc;
}

/* Zebra */
.table tbody tr:nth-child(even){
    background: #fafafa;
}

.table thead th{
    white-space: nowrap;
    text-align:center;
    vertical-align:middle;
    font-size:12px;
    padding:12px 8px;
}

/* ==========================
   PAGINATION
========================== */

.dataTables_paginate .paginate_button{
    border-radius: 50px !important;
    margin: 9px 3px;
}

.dataTables_paginate .paginate_button.current{
    background: #4BACC6 !important;
    color: white !important;
    border: none !important;
}

.dataTables_wrapper .dataTables_paginate {
    float: left !important;
}

.dataTables_wrapper .dataTables_info {
    float: right !important;
}

/* ==========================
   LOADING
========================== */

.dataTables_processing{
    border-radius: 12px;
    border: none;
    box-shadow: 0 5px 20px rgba(0,0,0,.15);
}

/* ==========================
   RESPONSIVE
========================== */

@media(max-width:768px){

    div.dt-buttons{
        float:none;
        margin-bottom:10px;
    }

    .dataTables_filter{
        margin-right:0;
        margin-bottom:15px;
    }

    .dataTables_filter,
    .dt-buttons{
        text-align:center;
    }
}

/* ==========================
   SCROLLBAR
========================== */

.table-responsive {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.table-responsive::-webkit-scrollbar {
    height: 10px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 20px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f1f1;
}


#tabelmasterrumah {
    width: 2200px !important;
}



.button-export{
    background:#f59e0b !important;
    color:#fff !important;
}

.button-tambah{
    background:#2563eb !important;
    color:#fff !important;
}

.button-setting{
    background:black !important;
    color:#fff !important; 
}

/* form input dan edit rumah  */

/* ===== FORM ===== */
.form-group{
    margin-bottom:6px !important;
    padding:0 !important;
}



/* ===== FOTO ===== */
.carousel-inner img{
    border-radius:10px;
    object-fit:cover;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
}

/* ===== MAP ===== */
#map{
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 2px 8px rgba(0,0,0,.1);
}


/* CARD */
.modern-card{
    background:#fff;
    border-radius:14px;
    box-shadow:0 4px 15px rgba(0,0,0,.08);
    margin-bottom:20px;
    overflow:hidden;
    border:none;
}

.modern-card-header{
    padding:14px 18px;
    font-size:15px;
    font-weight:600;
    border-bottom:1px solid #eee;
    background:#f8f9fa;
}

.modern-card-body{
    padding:18px;
}

/* FOTO */
.carousel-inner img{
    width:100%;
    height:350px;
    object-fit:cover;
    border-radius:10px;
}


.action-area{
    margin-top:20px;
    text-align:right;
}

.carousel-inner img{
    transition:.4s;
}

.carousel-inner img:hover{
    transform:scale(1.02);
}


    /* INPUT */
    .form-control,
    .select2-selection{
        min-height:34px !important;
        height:34px !important;
        border-radius:8px !important;
        font-size:13px !important;
        border:1px solid #dfe3e8 !important;
        box-shadow:none !important;
    }

    /* INPUT DISABLED */
    .form-control:disabled,
    .form-control[readonly]{
        background:#fafafa !important;
        color:#555 !important;
        border:1px solid #ececec !important;
    }

    /* SELECT2 */
    .select2-container--default .select2-selection--single{
        border-radius:8px !important;
        height:34px !important;
        border:1px solid #dfe3e8 !important;
    }

    .select2-selection__rendered{
        line-height:32px !important;
    }

    .select2-selection__arrow{
        height:32px !important;
    }





    .zoom-overlay{
        position:fixed;
        top:0;
        left:0;
        width:100%;
        height:100%;
        background:rgba(0,0,0,.9);
        display:none;
        justify-content:center;
        align-items:center;
        z-index:99999;
        cursor:zoom-out;
    }

    .zoom-overlay.active{
        display:flex;
    }

    .zoom-image{
        max-width:95%;
        max-height:95%;
        border-radius:10px;
        box-shadow:0 10px 40px rgba(0,0,0,.5);
    }
    .zoom-close{
        position:absolute;
        top:20px;
        right:30px;
        font-size:45px;
        color:white;
        cursor:pointer;
    }

/* ===== MOBILE ===== */
@media(max-width:768px){

    .carousel-inner img{
        height:250px !important;
    }

    #map{
        height:250px !important;
    }

    .col-form-label{
        margin-bottom:3px;
    }

}

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


/* Pagination */
.pagination{
    display:flex;
    justify-content:center;
    margin-top:35px;
}

.pagination a,
.pagination strong{
    min-width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:0 5px;
    border:none;
    border-radius:12px;
    background:#fff;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    text-decoration:none;
}

.pagination strong{
    background:#4BACC6;
    color:white;
}

.pagination a:hover{
    background:#4BACC6;
    color:white;
}

/* ==========================================================================
   MODERN APP SHELL: HEADER, NAVBAR, SIDEBAR, FOOTER
   ========================================================================== */

:root {
    --app-orange: #ea580c;
    --app-orange-dark: #9a3412;
    --app-orange-soft: #fff7ed;
    --app-sidebar: #111827;
    --app-sidebar-2: #182132;
    --app-line: rgba(148, 163, 184, 0.18);
    --app-text: #111827;
    --app-muted: #64748b;
}

body {
    background:
        radial-gradient(circle at top right, rgba(255, 237, 213, 0.74), transparent 34%),
        #f8fafc;
    color: var(--app-text);
}

.main-header {
    height: var(--header-height);
    background: linear-gradient(135deg, #f97316 0%, #c2410c 52%, #9a3412 100%) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 16px 40px rgba(124, 45, 18, 0.22);
}

.logo-header {
    padding: 0 18px !important;
    background: rgba(124, 45, 18, 0.18);
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.app-brand {
    min-width: 0;
    color: #ffffff;
    gap: 12px;
}

.app-brand:hover {
    color: #ffffff;
}

.brand-mark {
    display: inline-grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 28px rgba(124, 45, 18, 0.24);
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0;
}

.brand-copy small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.navbar-toggler,
.topbar-toggler {
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    border-radius: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.navbar-toggler {
    display: inline-flex !important;
}

.navbar-toggler i,
.topbar-toggler i {
    color: #ffffff;
    font-size: 22px;
}

.navbar-header {
    padding: 0 28px;
    background: transparent !important;
}

.navbar-header .container-fluid {
    display: flex;
    align-items: center;
}

.navbar-header .navbar-left {
    margin-left: 0 !important;
}

.topbar-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 54px;
    padding: 8px 18px 8px 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
}

.topbar-title strong {
    display: block;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
    text-shadow: 0 10px 26px rgba(124, 45, 18, 0.28);
}

/* .topbar-title span {
    display: block;
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
} */

.topbar-nav {
    gap: 12px;
}

.topbar-toggler {
    display: none;
}

.nav-icon-btn {
    position: relative;
    display: inline-grid !important;
    width: 64px;
    height: 44px;
    place-items: center;
    border-radius: 8px;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.14);
    transition: background 0.2s ease, transform 0.2s ease;
}

.nav-icon-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.nav-icon-btn i {
    color: #ffffff;
    font-size: 24px;
}

.notification {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border: 2px solid #ffffff;
    border-radius: 999px;
    color: #ffffff;
    background: #dc2626;
    font-family: 'Nunito', sans-serif;
    font-size: 10px;
    font-weight: 900;
    line-height: 16px;
    text-align: center;
}

#profileDropdown {
    min-height: 50px;
    padding: 5px 12px 5px 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

#profileDropdown::after {
    color: rgba(255, 255, 255, 0.85);
}

.topbar-avatar {
    border: 2px solid rgba(255, 255, 255, 0.76);
    object-fit: cover;
}

.profile-meta div {
    color: #ffffff;
    font-size: 13px;
    line-height: 1.15;
}

.profile-meta small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
}

.btn-topbar-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    margin-top: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #9a3412 !important;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(124, 45, 18, 0.18);
}

.btn-topbar-login:hover {
    color: #7c2d12 !important;
    background: #ffedd5;
}

.navbar-header .dropdown-menu,
.dropdown-user,
.notif-box {
    overflow: hidden;
    margin-top: 14px;
    border: 1px solid #fed7aa !important;
    border-radius: 8px !important;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18) !important;
}

.dropdown-user {
    min-width: 340px;
}

.dropdown-user .user-box {
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.98));
}

.dropdown-user .user-box .u-img img,
.dropdown-user .user-box img {
    width: 58px;
    height: 58px;
    border: 3px solid #ffedd5;
    border-radius: 8px;
    object-fit: cover;
}

.dropdown-user h5 {
    color: #111827;
    font-size: 16px;
}

.dropdown-user .user-email {
    max-width: 220px;
    word-break: break-word;
    font-size: 12px;
}

.dropdown-menu .dropdown-item {
    border-radius: 0;
}

.notif-box {
    width: 360px;
    padding: 0;
}

.notif-header {
    padding: 18px 20px;
    background: #fff7ed;
    border-bottom: 1px solid #fed7aa;
}

.textnotif {
    text-align: left !important;
    line-height: 1.45;
}

.notif-center {
    max-height: 330px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 18px;
    color: #334155;
    text-decoration: none !important;
    border-bottom: 1px solid #f1f5f9;
}

.notif-item:hover {
    background: #fff7ed;
    color: #111827;
}

.notif-icon-circle {
    display: inline-grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 8px;
    color: #ea580c;
    background: #ffedd5;
    font-size: 20px;
}

.notif-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.notif-user {
    color: #111827;
    font-size: 13px;
    font-weight: 800;
}

.notif-time {
    margin-top: 3px;
    color: #64748b;
    font-size: 12px;
}

.notif-footer .see-all {
    padding: 14px 18px;
    color: #9a3412 !important;
    background: #ffffff;
}

.notif-footer .see-all:hover {
    background: #fff7ed;
}

.sidebar {
    background:
        linear-gradient(180deg, var(--app-sidebar) 0%, var(--app-sidebar-2) 58%, #0f172a 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 12px 0 34px rgba(15, 23, 42, 0.16);
}

.sidebar .scrollbar-inner,
.sidebar-wrapper {
    padding: 16px 0 24px;
}

.sidebar .user {
    margin: 0 14px 14px;
    padding: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.sidebar .user .photo img {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(249, 115, 22, 0.7);
    border-radius: 8px;
}

.sidebar .nav {
    gap: 2px;
    padding: 4px 10px 16px;
}

.sidebar .nav .nav-item {
    margin-bottom: 1px;
}

.sidebar .nav .nav-item a {
    position: relative;
    gap: 8px;
    min-height: 36px;
    margin: 0 !important;
    padding: 7px 10px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    color: #cbd5e1 !important;
    font-weight: 400;
    font-size: 13px;
}

.sidebar .nav .nav-item a span {
    color: inherit !important;
    line-height: 1.3;
}

.sidebar .nav .nav-item a i {
    display: inline-grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    margin-right: 0 !important;
    border-radius: 8px;
    color: #94a3b8 !important;
    background: rgba(255, 255, 255, 0.05);
    font-size: 15px;
}

.sidebar .nav .nav-item a:hover,
.sidebar .nav .nav-item.active > a {
    color: #ffffff !important;
    border-color: rgba(249, 115, 22, 0.36) !important;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.22), rgba(255, 255, 255, 0.08)) !important;
    box-shadow: inset 4px 0 0 #f97316;
}

.sidebar .nav .nav-item a:hover i,
.sidebar .nav .nav-item.active > a i {
    color: #ffffff !important;
    background: #f97316;
}

.sidebar .caret {
    margin-left: auto;
}

.sidebar .nav-collapse {
    position: relative;
    margin: 2px 0 5px 14px;
    padding: 0 0 0 10px !important;
    border-left: 1px solid rgba(148, 163, 184, 0.18);
}

.sidebar .nav-collapse.level-1 > .nav-item > a,
.sidebar .nav-collapse.level-2 > .nav-item > a,
.sidebar .nav-collapse.level-3 > .nav-item > a,
.sidebar .nav-collapse.level-4 > .nav-item > a {
    min-height: 40px;
    padding-left: 8px !important;
    font-size: 12px;
}

.sidebar .nav-collapse .nav-item a i {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 13px;
}

.sidebar-mini .brand-copy,
.sidebar-mini .sidebar .nav .nav-item a span,
.sidebar-mini .sidebar .nav .nav-item a .caret {
    display: none !important;
}

.sidebar-mini .logo-header .brand-mark {
    display: inline-grid !important;
}

.sidebar-mini .logo-header .brand-mark img {
    display: block !important;
}

.sidebar-mini .logo-header {
    padding: 0 12px !important;
}

.sidebar-mini .app-brand {
    justify-content: center;
}

.sidebar-mini .sidebar .nav .nav-item a {
    justify-content: center;
    padding: 7px !important;
}

.sidebar-mini .sidebar .nav .nav-item a i {
    width: 30px;
    height: 30px;
}

.main-panel {
    background: #f8fafc;
}

.app-footer {
    padding: 18px 28px;
    border-top: 1px solid #e5e7eb;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #64748b;
    font-size: 13px;
}

.footer-content strong {
    margin-right: 8px;
    color: #111827;
}

.footer-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9a3412;
    font-weight: 800;
}

.footer-meta i {
    color: #f97316;
}

@media (max-width: 991px) {
    .main-header {
        height: auto;
        min-height: var(--header-height);
        flex-wrap: wrap;
    }

    .logo-header {
        width: 100%;
        min-height: var(--header-height);
    }

    .navbar-header {
        display: none;
        width: 100%;
        min-height: auto;
        padding: 14px 16px 18px;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
        background: rgba(124, 45, 18, 0.12) !important;
    }

    .navbar-header.show {
        display: block;
    }

    .topbar-toggler {
        display: inline-flex;
    }

    .navbar-header .container-fluid {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 14px;
        padding: 0;
    }

    .topbar-title {
        min-height: auto;
        padding: 8px 0;
        border-left: 0;
    }

    .topbar-title strong {
        font-size: 17px;
        line-height: 1.2;
    }

    .topbar-title span {
        font-size: 11px;
    }

    .topbar-nav {
        grid-column: 1 / -1;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
    }

    #profileDropdown {
        border-radius: 8px;
    }

    .profile-meta {
        display: none;
    }

    .sidebar {
        top: var(--header-height);
    }

    .sidebar_open .main-panel {
        transform: none;
    }

    .sidebar_open::before {
        content: "";
        position: fixed;
        inset: var(--header-height) 0 0 0;
        z-index: 998;
        background: rgba(15, 23, 42, 0.45);
    }

    .app-footer {
        padding: 16px;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .brand-copy strong {
        font-size: 15px;
    }

    .brand-copy small {
        font-size: 10px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .notif-box,
    .dropdown-user {
        width: calc(100vw - 28px);
        min-width: 0;
        right: -8px;
    }
}


.navbar-header .container-fluid{
    display: flex;
    align-items: center;
}

.navbar-header .navbar-toggler{
    margin-left: 0 !important;
    margin-right: 15px;
    order: 0;
}

.navbar-header .navbar-left{
    margin-left: 0 !important;
    flex: 1;
}
