/*!
 * CiBantenJITU Custom Interface Framework
 * Core: anomali (Modified)
 * Version: v1.0.0 
 * Build Date: 2026
 * Customized by: Firman.F
 * --------------------------------------------------------------------------
 */

/* Mengambil variabel background dari Controller dan menempatkannya di CSS Body */
body
{

background-repeat: no-repeat;
background-size: cover;
/* Tambahan: pastikan gambar terpusat dan tidak bergerak saat scroll */
background-position: center;
background-attachment: fixed;
}

:root {
--primary-color: #3a5bd9;
--primary-dark: #2d4ac4;
--secondary-color: #6c757d;
--text-color: #1e293b;
--light-bg: #f8fafc;
--white: #ffffff;
--font-family: 'Poppins', sans-serif;
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: var(--font-family);
min-height: 100vh;
/*display: flex;
align-items: center;
justify-content: center; */
padding: 20px;
position: relative;
overflow-x: hidden; /* Mencegah overflow horizontal akibat wave */
}

/* GELOMBANG AIR */
.waves {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 120px;
z-index: 1;
overflow: hidden;
background-color: transparent;
}

.wave {
position: absolute;
bottom: 0;
left: 0;
width: 200%;
height: 100%;
/* Menggunakan warna dasar untuk gelombang */
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%233a5bd9' fill-opacity='0.1' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,218.7C672,235,768,245,864,234.7C960,224,1056,192,1152,181.3C1248,171,1344,181,1392,186.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
opacity: 1;
animation: wave-scroll 60s linear infinite;
}

.wave:nth-of-type(2) {
bottom: -5px;
opacity: 0.15;
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%233a5bd9' fill-opacity='0.08' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,218.7C672,235,768,245,864,234.7C960,224,1056,192,1152,181.3C1248,171,1344,181,1392,186.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
animation: wave-scroll 80s linear infinite;
}

@keyframes wave-scroll {
0% { margin-left: 0; }
100% { margin-left: -1600px; }
}

/* Login Container */
.login-container {
position: relative;
z-index: 2;
width: 100%;
max-width: 380px;
margin: 0 auto;
}

/* White Glossy Card */
.login-card {
background: rgba(255, 255, 255, 0.98);
backdrop-filter: blur(15px);
-webkit-backdrop-filter: blur(15px);
border: 1px solid rgba(255, 255, 255, 0.4);
border-radius: 16px;
padding: 1.8rem;
box-shadow:
0 15px 35px rgba(0, 0, 0, 0.1),
0 5px 20px rgba(255, 255, 255, 0.4),
inset 0 1px 1px rgba(255, 255, 255, 0.8);
transition: transform 0.3s ease, box-shadow 0.3s ease;
height: auto;
min-height: 420px;
}

.login-card:hover {
transform: translateY(-3px);
box-shadow:
0 20px 40px rgba(0, 0, 0, 0.12),
0 8px 25px rgba(255, 255, 255, 0.5),
inset 0 1px 1px rgba(255, 255, 255, 0.9);
}

/* Brand Styling - WARNA #3a5bd9 */
.brand-title {
color: grey;
font-size: 1.8rem;
font-weight: 700;
text-align: center;
margin-bottom: 0.4rem;
}

.brand-subtitle {
color: var(--secondary-color);
text-align: center;
margin-bottom: 1.8rem;
font-weight: 400;
font-size: 0.85rem;
}

/* Input Groups */
.input-group {
position: relative;
margin-bottom: 1rem;
}

.input-icon {
position: absolute;
left: 12px;
top: 50%;
transform: translateY(-50%);
color: var(--secondary-color);
z-index: 2;
font-size: 0.9rem;
}

.row-control {
width: 100%;
padding: 11px 11px 11px 40px;
border: 1.5px solid #e0e0e0;
border-radius: 10px;
background: var(--white);
font-size: 0.9rem;
transition: all 0.3s ease;
color: var(--text-color);
font-family: var(--font-family);
box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
outline: none;
border-color: var(--primary-color);
background: var(--white);
box-shadow:
inset 0 1px 3px rgba(0, 0, 0, 0.05),
0 0 0 2px rgba(58, 91, 217, 0.1);
}

.form-control::placeholder {
color: #95a5a6;
font-size: 0.85rem;
}

/* Password Toggle */
.btn-toggle-password {
position: absolute;
right: 10px;
top: 50%;
transform: translateY(-50%);
background: none;
border: none;
color: var(--secondary-color);
cursor: pointer;
padding: 4px;
transition: all 0.3s ease;
border-radius: 50%;
width: 28px;
height: 28px;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.8rem;
}

.btn-toggle-password:hover {
background: rgba(58, 91, 217, 0.08);
color: var(--primary-color);
}

/* Login Button */
.btn-login {
width: 100%;
padding: 11px;
background: var(--primary-color);
border: none;
border-radius: 10px;
color: var(--white);
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
transition: all 0.3s ease;
box-shadow:
0 3px 10px rgba(58, 91, 217, 0.3),
inset 0 1px 1px rgba(255, 255, 255, 0.2);
font-family: var(--font-family);
margin-top: 0.3rem;
}

.btn-login:hover {
transform: translateY(-1px);
box-shadow:
0 5px 15px rgba(58, 91, 217, 0.4),
inset 0 1px 1px rgba(255, 255, 255, 0.3);
background: var(--primary-dark);
}

.btn-login:active {
transform: translateY(0);
}

/* Divider */
.divider {
position: relative;
text-align: center;
margin: 1.2rem 0;
color: var(--secondary-color);
}

.divider::before {
content: '';
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 1px;
background: #e0e0e0;
}

.divider span {
background: var(--white);
padding: 0 12px;
border-radius: 15px;
font-size: 0.8rem;
}

/* Links */
.text-center {
text-align: center;
}

.text-center p {
margin-bottom: 0.6rem;
color: var(--text-color);
font-size: 0.8rem;
}

.text-center a {
color: var(--primary-color);
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
font-size: 0.8rem;
}

.text-center a:hover {
color: var(--primary-dark);
text-decoration: underline;
}

/* MODIFIKASI: Container untuk Link Bersebelahan */
.text-link-container {
display: flex; /* Menggunakan Flexbox */
justify-content: space-around; /* Memberi jarak merata antar elemen */
align-items: center;
margin-top: 1rem; /* Tambahkan sedikit margin di atas divider */
text-align: center; /* Untuk memastikan link di tengah jika hanya satu */
}

.text-link-container a {
color: var(--primary-color);
text-decoration: none;
font-weight: 600;
transition: all 0.3s ease;
font-size: 0.8rem;
}

/* Error Messages */
.alert {
padding: 8px 10px;
border-radius: 6px;
margin-bottom: 1rem;
background: rgba(254, 226, 226, 0.9);
border-left: 3px solid #e53e3e;
color: #c53030;
font-weight: 500;
font-size: 0.8rem;
}

/* Captcha Field */
.mb-3 {
margin-bottom: 2rem !important;
}

.mt-4 {
margin-top: 0.8rem !important;
}

/* Responsive Design */
@media (max-width: 576px) {
.login-card {
padding: 1.5rem;
margin: 0 10px;
min-height: 400px;
}

.brand-title {
font-size: 1.6rem;
}

.form-control {
padding: 10px 10px 10px 38px;
}

.waves {
height: 100px;
}
}

@media (max-width: 480px) {
.login-card {
padding: 1.2rem;
min-height: 380px;
}

.brand-title {
font-size: 1.4rem;
}

.brand-subtitle {
font-size: 0.75rem;
}

.login-container {
max-width: 340px;
}
}
.dashboard-page { background: #f1f3f6; font-family: 'Inter', sans-serif; padding-bottom: 40px; }
/* 📱 KPI GRID PRESISI */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 Kolom agar pas di HP */
  grid-auto-rows: 1fr; /* Memaksa semua tinggi box sama rata */
  gap: 10px;
  padding: 15px;
}

@media (min-width: 992px) {
  .kpi-grid { grid-template-columns: repeat(5, 1fr); gap: 15px; }
}

/* 💎 KPI CARD STYLE ANDROID TOKOPEDIA */
.kpi-card-android {
  background: #ffffff;
  border-radius: 14px;
  padding: 12px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
  position: relative;
  box-shadow: 0 1px 6px rgba(49, 53, 59, 0.1);
  transition: all 0.2s ease;
  border: 1px solid #efefef;
  height: 100%;
}

.kpi-card-android:active { transform: scale(0.95); background: #fafafa; }

/* BOX ICON */
.kpi-icon-wrapper {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  font-size: 20px;
  position: relative;
}

/* 🔴 BADGE ANGKA DI POJOK ICON */
.kpi-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: #a19ab8; /* Warna merah notif */
  color: white;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* 🔴 BADGE ANGKA DI POJOK ICON */
.kpi-badge-go {
  /*position: absolute;
  top: -5px;
   right: -8px; */
  background: #a19ab8; /* Warna merah notif */
  color: white;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px; 
  border-radius: 10px;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.kpi-label-text {
  font-size: 11px;
  color: #31353b;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}

/* CONTENT CARD */
.content-card-android {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 6px rgba(49, 53, 59, 0.1);
  border: none;
}

.card-header-android {
  font-size: 1rem; font-weight: 700; color: #31353b; margin-bottom: 15px;
  display: flex; align-items: center;
}
.card-header-android i { margin-right: 10px; color: #03ac0e; }

.alert-android {
  background: #31353b; color: #fff; border-radius: 12px;
  padding: 15px; margin: 15px; font-size: 0.8rem; border: none;
}

.chart-container { position: relative; height: 280px; width: 100%; }


/* Gaya-gaya ini HANYA berlaku di dalam elemen dengan kelas .dashboard-page */
.dashboard-page {
/* New: Background Putih Glossy 
background: linear-gradient(135deg, #f0f0f5 0%, #ffffff 100%);*/
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
min-height: 100vh;
}

.dashboard-page .dashboard-header {
/* New: Header Putih Glossy dengan Teks Gelap */
background: rgba(255, 255, 255, 0.9);

border-bottom: 1px solid #D1D5DB; /* Garis tepi keabu-abuan */
color: #1F2937;
padding: 1.5rem 0;
}
.dashboard-page .dashboard-header h1 { font-weight: 700; color: #1F2937; }
.dashboard-page .dashboard-header p { opacity: 0.8; color: #4B5563; }

.dashboard-page .kpi-card {
/* New: KPI Card Putih Glossy dengan Garis Tepi Keabu-abuan */
background: rgba(255, 255, 255, 0.95);
backdrop-filter: blur(10px);
border: 1px solid #D1D5DB; /* Garis tepi keabu-abuan */
border-radius: 16px;
padding: 1.5rem;
color: #1F2937; /* Teks berwarna gelap */
transition: transform 0.3s ease, box-shadow 0.3s ease;
text-align: center;
box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Bayangan lembut */

/* --- PENTING: Menghilangkan underline pada link --- */
text-decoration: none;
display: block; /* Agar tag <a> menempati seluruh area card */
}

.dashboard-page .kpi-card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Warna KPI Aksen */
.dashboard-page .kpi-card .kpi-value {
font-size: 2.5rem;
font-weight: 700;
color: #3B82F6;
}

.dashboard-page .kpi-card .kpi-label {
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 1px;
opacity: 0.9;
color: #4B5563;
}
.dashboard-page .content-card {
/* New: Content Card Putih Glossy dengan Garis Tepi Keabu-abuan */
background: rgba(255, 255, 255, 0.9);
border-radius: 16px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
border: 1px solid #E5E7EB; /* Garis tepi keabu-abuan */
overflow: hidden;
transition: all 0.3s ease;
}
.dashboard-page .content-card:hover {
box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.05);
}
.dashboard-page .content-card .card-header {
/* New: Header Kartu dengan warna latar sangat terang */
background: #F9FAFB;
border-bottom: 1px solid #E5E7EB;
font-weight: 600;
color: #1F2937;
padding: 1rem 1.5rem;
}

.dashboard-page .activity-feed .feed-item {
padding: 1rem 1.5rem;
border-bottom: 1px solid #E5E7EB; /* Garis tepi keabu-abuan */
transition: background-color 0.2s;
display: flex;
align-items: center;
}
.dashboard-page .activity-feed .feed-item:hover { background-color: #F9FAFB; }
.dashboard-page .activity-feed .feed-item:last-child { border-bottom: none; }
.dashboard-page .activity-feed .feed-icon {
width: 40px;
height: 40px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 0.8rem;
margin-right: 1rem;
flex-shrink: 0;
/* Pastikan ikon terlihat di background putih */
background-color: #3B82F6 !important;
}
.dashboard-page .activity-feed .feed-details { font-size: 0.875rem; }
.dashboard-page .activity-feed .feed-details .feed-title { font-weight: 600; color: #1F2937; }
.dashboard-page .activity-feed .feed-details .feed-meta { color: #6B7280; font-size: 0.8rem; }

/* Mengurangi tinggi chart agar tidak terlalu mendominasi */
.dashboard-page .chart-container { position: relative; height: 300px; }

/* Fix list height for alignment in the last row */
.dashboard-page .list-group-flush {
min-height: 250px; /* Minimal tinggi agar sejajar dengan Aktivitas */
}
.dashboard-page .activity-feed {
min-height: 250px; /* Minimal tinggi agar sejajar dengan Piutang */
}


@keyframes fadeInUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.dashboard-page .animate-fade-in-up {
animation: fadeInUp 0.6s ease-out;
}

/* Button adjustments for light theme */
.dashboard-page .content-card .btn-primary {
background-color: #3B82F6;
border-color: #3B82F6;
}
.dashboard-page .content-card .btn-outline-secondary {
color: #4B5563;
border-color: #D1D5DB;
}
.dashboard-page .content-card .btn-outline-secondary:hover {
background-color: #F3F4F6;
color: #1F2937;
}
/* 1. Paksa Modal & Backdrop berada di lapisan paling atas */
.modal {
    z-index: 10001 !important;
}
.modal-backdrop {
    z-index: 10000 !important;
}

/* 2. Jika modal diletakkan di dalam .dashboard-page, 
   pastikan dia tidak ikut kena filter blur saat aktif */
body.modal-open .dashboard-page .dashboard-header {
    backdrop-filter: none !important;
    filter: none !important;
}

@media (min-width: 992px) {
  .kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
  }
}

/* --- START: WHATSAPP WIDGET CSS BARU (FINAL) --- */


         /* Modern Modal Styles (Kode Anda Sebelumnya) */
         .modal-backdrop {
         background-color: rgba(0, 0, 0, 0.7);
         }
        
         .modal.fade .modal-dialog {
         transform: translate(0, -100px);
         transition: transform 0.3s ease-out, opacity 0.3s ease-out;
         opacity: 0;
         }
        
         .modal.show .modal-dialog {
         transform: translate(0, 0);
         opacity: 1;
         }
        
         #registrationNotificationModal .modal-content {
         border-radius: 12px;
         box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
         border: none;
         overflow: hidden;
         }
        
         #registrationNotificationModal .modal-header {
         border-bottom: none;
         padding: 1.5rem 1.5rem 0.5rem;
         position: relative;
         }
        
         #registrationNotificationModal .modal-title {
         font-weight: 600;
         font-size: 1.4rem;
         margin-bottom: 0;
         }
        
         #registrationNotificationModal .modal-body {
         padding: 1rem 1.5rem 1.5rem;
         }
        
         #registrationNotificationModal .modal-footer {
         border-top: none;
         padding: 0.5rem 1.5rem 1.5rem;
         justify-content: flex-end;
         }
        
         #registrationNotificationModal .close {
         font-size: 1.5rem;
         font-weight: 300;
         line-height: 1;
         color: #fff;
         text-shadow: none;
         opacity: 0.8;
         transition: opacity 0.2s;
         background: rgba(255, 255, 255, 0.2);
         border-radius: 50%;
         width: 30px;
         height: 30px;
         display: flex;
         align-items: center;
         justify-content: center;
         }
        
         #registrationNotificationModal .close:hover {
         opacity: 1;
         }
        
         #registrationNotificationModal .modal-icon {
         width: 60px;
         height: 60px;
         border-radius: 50%;
         display: flex;
         align-items: center;
         justify-content: center;
         margin: 0 auto 1rem;
         font-size: 1.8rem;
         }
        
         #registrationNotificationModal .success-icon {
         background-color: rgba(40, 167, 69, 0.2);
         color: #28a745;
         }
        
         #registrationNotificationModal .warning-icon {
         background-color: rgba(255, 193, 7, 0.2);
         color: #ffc107;
         }
        
         #registrationNotificationModal .danger-icon {
         background-color: rgba(220, 53, 69, 0.2);
         color: #dc3545;
         }
        
         #registrationNotificationModal .modal-message {
         text-align: center;
         font-size: 1.1rem;
         line-height: 1.5;
         margin-bottom: 0;
         }
        
         #registrationNotificationModal .btn-close {
         border-radius: 6px;
         padding: 0.5rem 1.5rem;
         font-weight: 500;
         transition: all 0.2s;
         }
        
         #registrationNotificationModal .btn-close:hover {
         transform: translateY(-2px);
         box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
         }
        
         /* Animasi untuk modal */
         @keyframes modalFadeIn {
         from {
         opacity: 0;
         transform: scale(0.8);
         }
         to {
         opacity: 1;
         transform: scale(1);
         }
         }
        
         .modal.show .modal-content {
         animation: modalFadeIn 0.3s ease-out;
         }
        
         /* Progress bar modernisasi */
         .ajax-progress-bar {
         height: 4px;
         background-color: rgba(0, 0, 0, 0.1);
         }
        
         .ajax-progress-bar .progress-bar {
         background: linear-gradient(90deg, #4e73df, #224abe);
         height: 100%;
         }
        
         /* --- START: WHATSAPP WIDGET CSS BARU (FINAL) --- */
        
         #whatsapp-widget-container {
         position: fixed;
         bottom: 20px;
         right: 20px;
         z-index: 1000;
         }
        
         /* Tombol Ikon Mengambang */
         .whatsapp-float-btn {
         background-color: #25D366;
         color: white;
         width: 60px; /* Lebar default: Lingkaran */
         height: 60px;
         border-radius: 50%;
         display: flex;
         align-items: center;
         justify-content: center;
         box-shadow: 0 4px 8px rgba(0,0,0,0.4);
         cursor: pointer;
         border: none;
         transition: transform 0.3s ease;
         }
        
         .whatsapp-float-btn:hover {
         transform: scale(1.05);
         }
         
          /* Konten dalam tombol (gunakan flexbox) */
          .whatsapp-float-btn .float-content {
           display: flex;
           align-items: center;
          }
        
          /* Teks di tombol mengambang (disembunyikan di layar besar) */
          .whatsapp-float-btn .float-text {
           display: none;
           margin-right: 10px;
           font-size: 16px;
           font-weight: 500;
           white-space: nowrap;
          }
        
          /* Ikon WA - memastikan ukurannya */
          .whatsapp-float-btn .fa-whatsapp {
           font-size: 30px;
           min-width: 30px; /* Penting untuk menjaga ukuran ikon */
          }
        
          /* --- MEDIA QUERY KHUSUS UNTUK LAYAR KECIL (MOBILE/HP) --- */
          @media (max-width: 768px) {
          
           /* Perluas tombol mengambang ke bentuk kapsul */
           .whatsapp-float-btn {
           width: auto;
           padding: 10px 15px;
           border-radius: 30px;
           }
        
           /* Tampilkan Teks di layar kecil */
           .whatsapp-float-btn .float-text {
           display: block;
           }
          }
        
        
         /* Kotak Chatbox Pop-up */
         #whatsapp-chatbox {
         position: absolute;
         bottom: 80px;
         right: 0;
         width: 300px;
         background-color: white;
         border-radius: 12px;
         box-shadow: 0 6px 12px rgba(0,0,0,0.15);
         overflow: hidden;
         opacity: 0;
         transform: translateY(20px);
         transition: opacity 0.3s ease, transform 0.3s ease;
         pointer-events: none;
         }
        
         #whatsapp-chatbox.show {
         opacity: 1;
         transform: translateY(0);
         pointer-events: auto;
         }
        
         .hidden {
         display: none;
         }
        
         /* Header Chatbox */
         .chatbox-header {
         background-color: #25D366;
         color: white;
         padding: 15px;
         position: relative;
         font-size: 1.1em;
         font-weight: bold;
         border-top-left-radius: 12px;
         border-top-right-radius: 12px;
         }
        
         .chatbox-header .close-btn {
         position: absolute;
         top: 5px;
         right: 5px;
         background: none;
         border: none;
         color: white;
         font-size: 1.5em;
         cursor: pointer;
         line-height: 1;
         }
        
         /* Body Chatbox */
         .chatbox-body {
         padding: 15px;
         text-align: center;
         }
        
         .chatbox-info p {
         color: #666;
         font-size: 0.9em;
         margin-bottom: 15px;
         }
        
         /* Tombol Mulai Percakapan */
         .chat-start-btn {
         display: block;
         background-color: #25D366;
         color: white;
         text-decoration: none;
         padding: 10px;
         border: none;
         width: 100%;
         border-radius: 8px;
         font-weight: bold;
         margin-bottom: 15px;
         cursor: pointer;
         transition: background-color 0.2s;
         }
        
         .chat-start-btn:hover {
         background-color: #128C7E;
         }
        
         .chat-info-text {
         display: block;
         font-size: 0.8em;
         font-weight: normal;
         margin-top: 2px;
         }
         
          /* STYLE UNTUK TOMBOL DISABLED */
          .chat-start-btn.disabled {
           background-color: #bbbbbb; /* Warna abu-abu */
           cursor: not-allowed;
          }
          .chat-start-btn.disabled:hover {
           background-color: #bbbbbb; /* Jangan berubah warna saat disabled */
          }
        
         /* Footer Chatbox */
         .chatbox-footer p {
         margin-bottom: 5px;
         font-weight: bold;
         color: #333;
         }
        
         .chatbox-footer small {
         color: #999;
         font-size: 0.75em;
         }
         /* --- END: WHATSAPP WIDGET CSS BARU (FINAL) --- */
         
/* --- END: WHATSAPP WIDGET CSS BARU (FINAL) --- */

/* ========================================== */
/* CAROUSEL (TANPA TOMBOL NAVIGASI) */
/* ========================================== */
.carousel-container {
    /* Mengganti kursor tangan menjadi ikon Pause saat mouse masuk */
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='white'><path stroke='black' stroke-width='1' d='M6 19h4V5H6v14zm8-14v14h4V5h-4z'/></svg>") 16 16, auto;
    
    user-select: none;
    -webkit-user-drag: none;
}

/* Opsional: Saat mouse ditekan (klik tahan), ikon sedikit mengecil agar ada efek 'click' */
.carousel-container:active {
    cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='white'><path stroke='black' stroke-width='1' d='M6 19h4V5H6v14zm8-14v14h4V5h-4z'/></svg>") 12 12, auto;
}

.carousel-slide img {
    pointer-events: none;
}
.carousel-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9; /* Rasio yang umum untuk desktop */
    max-height: 500px;
    overflow: hidden;
    /* HILANGKAN BAYANGAN */
    box-shadow: none; 
}

.carousel {
    position: relative;
    width: 100%;
    height: 80%;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    /* TAMBAHKAN INI UNTUK MENGHILANGKAN RADIUS */
    border-radius: 0;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.carousel-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    right: 30px;
    z-index: 2;
    color: white;
    max-width: 600px;
    padding: 15px;
    border-radius: 8px;
    /*background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px); *//
}

.carousel-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.carousel-content p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* HAPUS CSS UNTUK KONTROL */
.carousel-controls {
    display: none; /* Sembunyikan kontrol carousel */
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: var(--transition);
}

.carousel-indicator.active {
    background: white;
    width: 30px;
    border-radius: 6px;
}

/* CARD dll */
.cardd{
background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
padding:30px;
border-radius:var(--radius);
box-shadow:0 10px 30px rgba(12,18,30,0.08);
transition: var(--transition);
position: relative;
overflow: hidden;
}


.cardd::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
transform: scaleX(0);
transition: transform 0.3s ease;
}

.cardd:hover::before {
transform: scaleX(1);
}

.cardd:hover {
transform: translateY(-5px);
box-shadow:0 15px 40px rgba(12,18,30,0.12);
}

.cardd-icon {
width: 60px;
height: 60px;
border-radius: 12px;
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 20px;
color: white;
font-size: 24px;
}

.cardd h3{
margin:0 0 15px;
font-size:1.3rem;
color:var(--dark-bg);
}

.cardd p{
margin:0;
color:var(--muted);
font-size:1rem;
line-height: 1.6;
}
/* ----------------- */
/* RESPONSIVE CAROUSEL */
/* ----------------- */
@media (max-width: 992px) {
    .carousel-container {
        aspect-ratio: 16/10;
        max-height: 450px;
    }
    .carousel-content h2 { font-size: 2rem; }
    .carousel-content p { font-size: 1rem; }
}

@media (max-width: 768px) {
    .carousel-container {
        aspect-ratio: 4:3;
        max-height: 350px;
    }
    .carousel-content { left: 20px; right: 20px; bottom: 20px; padding: 10px; }
    .carousel-content h2 { font-size: 1.6rem; }
    .carousel-content p { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .carousel-container {
        aspect-ratio: 3:2;
        max-height: 300px;
    }
    .carousel-content { left: 15px; right: 15px; bottom: 15px; padding: 8px; }
    .carousel-content h2 { font-size: 1.4rem; }
    .carousel-content p { font-size: 0.9rem; }
}



/* ----------------------------------------------------- */
/* PERBAIKAN UTAMA: DYNAMIC BODY BACKGROUND (Line 50) */

.divider {
text-align: center;
margin: 1.5rem 0;
position: relative;
}
.divider::before {
content: '';
position: absolute;
top: 50%;
left: 0;
right: 0;
height: 1px;
background: #e0e0e0;
}
.divider span {
background: var(--white);
padding: 0 1rem;
position: relative;
color: var(--secondary-color);
}


/* --- ANIMASI GELOMBANG AIR --- */
.waves {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
height: 200px;
z-index: 1;
overflow: hidden;
}

.wave {
position: absolute;
bottom: 0;
left: 0;
width: 200%;
height: 100%;
background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320'%3E%3Cpath fill='%234a6cf7' fill-opacity='0.3' d='M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,218.7C672,235,768,245,864,234.7C960,224,1056,192,1152,181.3C1248,171,1344,181,1392,186.7L1440,192L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z'%3E%3C/path%3E%3C/svg%3E") repeat-x;
animation: wave 18s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
}

.wave:nth-of-type(2) {
bottom: 10px;
animation: wave 12s cubic-bezier(0.36, 0.45, 0.63, 0.53) -0.125s infinite, swell 7s ease -1.25s infinite;
opacity: 0.8;
}

@keyframes wave {
0% { margin-left: 0; }
100% { margin-left: -1600px; }
}

@keyframes swell {
0%, 100% { transform: translateY(-5px); }
50% { transform: translateY(5px); }
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 576px) {
body { padding: 20px 15px; }
.login-card { padding: 2rem; }
.brand-title { font-size: 2rem; }
}


/* Services */
.services{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
gap:30px;
padding:60px 40px;
background:var(--page-bg);
}


/* Photo Board Section */
.photo-board {
padding: 60px 40px;
background: #fff;
}

.section-header {
text-align: center;
margin-bottom: 40px;
}

.section-header h2 {
font-size: 2.2rem;
font-weight: 700;
margin-bottom: 15px;
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

.section-header p {
color: var(--muted);
max-width: 600px;
margin: 0 auto;
font-size: 1.1rem;
}

.upload-btn {
display: inline-flex;
align-items: center;
gap: 8px;
background: linear-gradient(135deg, var(--accent) 0%, #3ab5ae 100%);
color: white;
padding: 12px 24px;
border-radius: 50px;
text-decoration: none;
font-weight: 600;
box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
transition: var(--transition);
margin: 0 auto 30px;
}

.upload-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

/* PERBAIKAN: Set default 4 kolom untuk desktop besar */
.photo-grid {
display: grid;
grid-template-columns: repeat(4, 1fr); /* Default: 4 kolom */
gap: 20px;
}

.photo-item {
position: relative;
border-radius: var(--radius);
overflow: hidden;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
transition: var(--transition);
aspect-ratio: 1/1;
}

.photo-item:hover {
transform: scale(1.03);
box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.photo-item img {
width: 100%;
height: 100%;
object-fit: cover;
}

.photo-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
padding: 20px 15px 15px;
color: white;
transform: translateY(100%);
transition: var(--transition);
}

.photo-item:hover .photo-overlay {
transform: translateY(0);
}

.photo-title {
font-weight: 600;
margin-bottom: 5px;
}

.photo-date {
font-size: 0.85rem;
opacity: 0.8;
}

/* Info Board Section */
.info-board {
padding: 60px 40px;
background: var(--page-bg);
}

.info-table {
width: 100%;
border-collapse: separate;
border-spacing: 0;
background: white;
border-radius: var(--radius);
overflow: hidden;
box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.info-table thead {
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
color: white;
}

.info-table th {
padding: 15px 20px;
text-align: left;
font-weight: 600;
}

.info-table td {
padding: 15px 20px;
border-bottom: 1px solid #f1f5f9;
}

.info-table tbody tr {
transition: var(--transition);
}

.info-table tbody tr:hover {
background-color: #f8fafc;
}

.info-table tbody tr:last-child td {
border-bottom: none;
}

.info-status {
display: inline-block;
padding: 5px 12px;
border-radius: 20px;
font-size: 0.85rem;
font-weight: 600;
}

.status-new {
background-color: #dbeafe;
color: #1e40af;
}

.status-updated {
background-color: #dcfce7;
color: #166534;
}

.status-important {
background-color: #fee2e2;
color: #b91c1c;
}

.add-info-btn {
display: inline-flex;
align-items: center;
gap: 8px;
background: linear-gradient(135deg, var(--secondary) 0%, #ef4444 100%);
color: white;
padding: 12px 24px;
border-radius: 50px;
font-weight: 600;
box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
transition: var(--transition);
margin-top: 30px;
}

.add-info-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

/* Gallery */
.gallery{
padding:60px 40px;
background:#fff;
}

.gallery h2{
text-align:center;
margin-bottom:40px;
font-size:2.2rem;
font-weight:700;
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}

/* PERBAIKAN: Set default 4 kolom untuk desktop besar */
.gallery-grid{
display:grid;
gap:20px;
grid-template-columns:repeat(4, 1fr); /* Default: 4 kolom */
}

.gallery-item{
position:relative;
overflow:hidden;
border-radius:var(--radius);
box-shadow:0 5px 15px rgba(0,0,0,0.1);
aspect-ratio: 1/1;
}

.gallery-item img{
width:100%;
height:100%;
object-fit:cover;
display:block;
transition:transform 0.5s ease;
}

.gallery-item:hover img{
transform:scale(1.08);
}

.gallery-overlay {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%);
display: flex;
align-items: flex-end;
padding: 20px;
opacity: 0;
transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
opacity: 1;
}

.gallery-title {
color: white;
font-weight: 600;
transform: translateY(20px);
transition: var(--transition);
}

.gallery-item:hover .gallery-title {
transform: translateY(0);
}


.social-icons {
display: flex;
justify-content: center;
gap: 15px;
margin-bottom: 30px;
}

.social-icon {
width: 40px;
height: 40px;
border-radius: 50%;
background: rgba(255,255,255,0.1);
display: flex;
align-items: center;
justify-content: center;
color: white;
transition: var(--transition);
}

.social-icon:hover {
background: var(--primary);
transform: translateY(-3px);
}

.copyright {
border-top: 1px solid rgba(255,255,255,0.1);
padding-top: 20px;
margin-top: 20px;
}

/* Modal for Upload */
.modal {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
backdrop-filter: blur(5px);
}

.modal-content {
background-color: white;
margin: 5% auto;
/*padding: 30px; */
border-radius: var(--radius);
/* width: 80%; */
max-width: 600px;
box-shadow: 0 10px 30px rgba(0,0,0,0.2);
animation: modalopen 0.4s;
}

@keyframes modalopen {
from {opacity: 0; transform: translateY(-50px);}
to {opacity: 1; transform: translateY(0);}
}

.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
transition: var(--transition);
}

.close:hover {
color: var(--primary);
}



.submit-btn {
background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
color: white;
border: none;
padding: 12px 24px;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: var(--transition);
}

.submit-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(74, 108, 247, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
.photo-grid, .gallery-grid {
grid-template-columns: repeat(3, 1fr);
}
}

@media (max-width: 768px) {
header {
padding: 16px 20px;
}

.brand h1 {
font-size: 1.2rem;
}



.info-section,
.services,
.photo-board,
.info-board,
.gallery {
padding: 40px 20px;
}

.services {
grid-template-columns: 1fr;
}

.photo-grid, .gallery-grid {
grid-template-columns: repeat(2, 1fr);
}

.info-table {
font-size: 0.9rem;
}

.info-table th,
.info-table td {
padding: 10px 15px;
}


}
@media (max-width: 480px) {
.photo-grid, .gallery-grid {
grid-template-columns: 1fr;
}
}

/*dariappheader */
/* 🌌 NAVBAR GLOSSY MELAYANG */
.navbar-dark.bg-press {
    background: linear-gradient(90deg, #5a67e6, #7888f0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.navbar-center-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    max-width: 65%;
}

.navbar-center-logo img {
    height: 38px;
    display: block;
    margin: 0 auto;
}

.navbar-center-logo small {
    display: block;
    font-size: 11px;
    color: #fff;
    margin-top: 2px;
    letter-spacing: 0.3px;
    line-height: 1.2;
}

/* 🌫️ SIDEBAR GLOSSY */
#sidebar .nav-link:hover {
    background: rgba(91,110,225,0.15);
    transform: translateX(4px);
}

.user-profile-dropdown .nav-link {
    max-width: 220px;
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.user-profile-dropdown .avatar-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background-color: #ffffff;
    color: #5a67e6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
}

/* --- 🖥️ SETTING DEFAULT (BROWSER MODE) --- */
/* Secara default, menu bawah disembunyikan dan sidebar ditampilkan */
.android-menu-bottom, .full-menu-overlay, .btn-add-center {
    display: none !important;
}

#sidebar {
    display: block !important;
}

/* Chatbox Posisi Desktop */
div#whatsapp-chatbox {
    position: fixed !important;
    bottom: 90px !important;
    right: 20px !important; 
    left: auto !important;
    width: 320px !important; 
    max-width: 320px !important;
    z-index: 9999 !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2) !important;
    display: none;
}

div#whatsapp-chatbox:not(.hidden) {
    display: block !important;
}

#whatsapp-widget-container {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* KHUSUS UNTUK PWA ANDROID */
@media all and (display-mode: standalone) {
    .whatsapp-float-btn {
        display: flex !important; /* PAKSA TAMPIL */
        bottom: 10px !important;  /* NAIKKAN POSISI agar tidak tertutup menu PWA */
        right: 20px !important;
        z-index: 999999 !important;
        position: fixed !important;
    }

    #whatsapp-chatbox {
        bottom: 160px !important; /* Chatbox juga harus lebih tinggi */
        z-index: 999999 !important;
    }
    div#whatsapp-chatbox {
        bottom: 100px !important; 
       /* right: 10px !important;
          left: 10px !important; */
        width: auto !important;
       /* max-width: none !important; */
        z-index: 10999 !important;
    }

    /* 2. Header Mobile */
    #topbar {
        height: 60px;
        background: linear-gradient(90deg, #5a67e6, #7888f0) !important;
    }

    /* 3. Paksa Konten Full Screen */
    #main-content, .main-content, #content, .container-fluid {
        margin-left: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        width: 100% !important;
    }

    body {
        padding-bottom: 85px !important;
    }

    /* 4. Aktifkan Navigasi Bawah Android */
    /* Container Menu Bawah */
/* Container Utama */
.android-menu-bottom {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px !important; /* Tinggi disesuaikan */
    background: #ffffff;
    z-index: 11000 !important;
    align-items: center;
    justify-content: space-evenly; /* Bagi rata 5 tombol agar pas di layar */
    padding: 10px 5px;
    border-top: 1px solid #e0e0e0;
    box-shadow: 0 -3px 20px rgba(0,0,0,0.05);
    overflow: hidden; /* Tidak bergeser */
}

/* Style Card untuk Tiap Item */
.android-menu-item {
    background: #ffffff;
    color: #555;
    text-decoration: none !important;
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 18%; /* 5 tombol x 18% = 90% (sisa 10% untuk gap) */
    height: 70px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

/* Icon dalam Card */
.android-menu-item i {
    font-size: 24px;
    margin-bottom: 4px;
    display: block;
}

/* Style Khusus Tombol Tambah (Tengah) */
.btn-add-center {
    background: #5a67e6;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    color: white !important;
    margin-bottom: 2px;
    box-shadow: 0 4px 8px rgba(90,103,230,0.3);
}

.android-menu-item.active {
    color: #5a67e6;
    border: 1px solid rgba(90,103,230,0.2);
}

.android-menu-item:active {
    transform: scale(0.95);
    background: #f0f0f0;
}
    
    .android-menu-item.active {
        color: #5a67e6;
    }
}

/* --- FULL MENU OVERLAY STYLE --- */
.full-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* Kembalikan ke 100% agar tidak overflow berlebih */
    background: #f8f9fa;
    z-index: 12000;
    display: none;
    overflow-y: auto;
    padding: 20px;
}

.full-menu-overlay.active-menu {
    display: block !important;
    animation: slideUp 0.3s ease-out;
}

.full-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.full-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Tetap 3 kolom agar ikon besar muat */
    gap: 20px; /* Jarak antar kotak menu diperlebar */
}

.menu-grid-item {
    background: #fff;
    padding: 20px 10px; /* Padding ditambah biar kotak lebih tinggi */
    border-radius: 15px;
    text-align: center;
    text-decoration: none !important;
    color: #333 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.menu-grid-item:active {
    transform: scale(0.95);
}

/* PEMBESARAN IKON */
.menu-grid-item .icon-box i {
    font-size: 25px; /* IKON DIBESARKAN DISINI */
    margin-bottom: 12px;
    display: block;
}

/* PENYESUAIAN TEKS */
.menu-grid-item span {
    font-size: 13px; /* Ukuran teks sedikit lebih besar */
    font-weight: 600;
    line-height: 1.3;
    display: block;
    word-wrap: break-word;
}

.menu-grid-item {
    background: #fff;
    padding: 15px 5px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none !important;
    color: #333 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
/* --- 🖥️ FIX PROFIL RINGKAS DI BROWSER HP --- */
@media (max-width: 991px) {
    /* Tetap paksa muncul di pojok kanan */
    .navbar-responsive-collapse.collapse {
        display: flex !important;
        flex-basis: auto !important;
        width: auto !important;
    }

    /* Sembunyikan Nama User, Sisakan Icon Saja */
    .user-name-text {
        display: none !important; /* Nama hilang biar gak menabrak logo */
    }

    .user-profile-dropdown .nav-link {
        padding: 5px !important;
        background-color: transparent !important; /* Biar lebih bersih */
    }

    .user-profile-dropdown .avatar-icon {
        margin-right: 0 !important; /* Hilangkan jarak kanan karena nama sudah tidak ada */
        width: 35px;
        height: 35px;
        border: 2px solid rgba(255,255,255,0.5);
    }
}

/* --- 📱 LOGIKA KHUSUS PWA STANDALONE --- */
@media all and (display-mode: standalone) {
    /* Tetap sembunyikan semua elemen desktop di mode PWA */
    #sidebar, #sidebarCollapse, .navbar-center-logo small, 
    .user-profile-dropdown, .navbar-responsive-collapse {
        display: none !important;
    }
    
    .android-menu-bottom {
        display: flex !important;
    }
}

/* --- 📱 PENGATURAN LOGO TENGAH (HIDDEN ON MOBILE/PWA) --- */

@media (max-width: 991px) {
    /* 1. Sembunyikan teks jargon di bawah logo saat di HP (Browser & PWA) */
    .navbar-center-logo small {
        display: none !important;
    }

    /* 2. Opsional: Sesuaikan posisi logo tengah agar tetap simetris */
    .navbar-center-logo {
        top: 50%;
        transform: translate(-50%, -50%);
        margin-top: 0;
    }
}

/* --- 📱 KHUSUS DI MODE PWA (STANDALONE) --- */
@media all and (display-mode: standalone) {
    /* Jika di PWA kamu mau menghilangkan seluruh logo tengah (termasuk gambarnya), 
       aktifkan kode di bawah ini: */
    /*
    .navbar-center-logo {
        display: none !important;
    }
    */
}

/* GLOSY TAB */
/* === BASE STYLES & ELEGANCE === */
.card {
    border-radius: 12px;
    /* Meningkatkan shadow untuk kesan lebih premium */
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    border: 1px solid #e6eef6; /* Border tipis untuk definisi */
}
.cardlone {
    /*border-radius: 12px;*/
    /* Meningkatkan shadow untuk kesan lebih premium */
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    overflow: hidden;
    border: 1px solid #e6eef6; /* Border tipis untuk definisi */
}
.card-header {
    border-bottom: 2px solid #e9eef5;
    font-weight: 700; /* Lebih tebal */
    letter-spacing: 0.5px;
    background-color: #f7f9fc; /* Sedikit latar belakang */
    color: #0b63b6; /* Warna utama */
    padding: 15px 20px;
}

/* Warna elegan */
.bg-primary {
    background: linear-gradient(45deg, #0b63b6, #0ea5ff) !important;
}

.bg-info {
    background: linear-gradient(45deg, #0891b2, #22c1c3) !important;
}

/* Tombol (jika masih ada yang tersisa) */
.btn-success {
    background: linear-gradient(45deg, #16a34a, #4ade80);
    border: none;
    color: #fff;
    border-radius: 8px;
}

.btn-warning {
    background: linear-gradient(45deg, #f59e0b, #ffbf69);
    border: none;
    color: #000;
    border-radius: 8px;
}

/* Styling tabel */
#alat-list-container table {
    border-collapse: collapse !important;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid #e6eef6;
}

#alat-list-container table thead {
    background: #e9eef5; /* Warna lebih netral */
    color: #333;
    font-weight: 700;
    border-bottom: 2px solid #ddd;
}

#alat-list-container table tbody tr:nth-child(even) {
    background: #fcfcfc;
}

#alat-list-container table tbody tr:hover {
    background-color: #f1f8ff; /* Hover lebih kalem */
    transition: 0.2s ease;
}

/* Warna teks tabel hitam */
#alat-list-container table td,
#alat-list-container table th {
    color: #000;
    padding: 12px 16px; /* Padding sedikit lebih besar */
    vertical-align: middle;
    border: 1px solid #f0f0f0; /* Garis antar sel */
}

/* Judul Record */
h4.record-title {
    color: #0b63b6;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

/* Input/Form yang hanya baca (untuk tampilan elegan) */
.form-control[], .form-control-plaintext {
    background-color: #ffffff !important; /* Hilangkan latar belakang abu-abu */
    border: none !important; /* Hilangkan border */
    color: #333 !important;
    font-weight: 600; /* Tebalkan sedikit nilainya */
    padding-left: 0;
}

/* === PRINT STYLES UNTUK RAPIDITAS === */

@media print {
    /* Sembunyikan semua elemen yang tidak perlu saat cetak */
    button, 
    .btn, 
    .dropzone,
    .card-footer, 
    .no-print,
    .custom-control, /* Sembunyikan Checkbox dan elemen kontrol */
    /* Sembunyikan semua input, select, textarea */
    input:not([type="hidden"]), 
    select, 
    textarea {
        display: none !important; 
    }

    /* Hilangkan semua shadow, border, dan latar belakang */
    body {
        background-color: #fff !important;
    }
    .card {
        box-shadow: none !important;
        border: none !important;
        margin: 0 !important;
    }
    .card-header {
        background-color: #fff !important;
        border-bottom: 1px solid #000 !important;
        color: #000 !important;
        padding: 5px 0 !important;
    }

    /* Tampilan Nilai Input: Sejajar Kanan-Kiri */
    /* Asumsi Anda menggunakan struktur umum Bootstrap: .form-group/.row > .col-label & .col-value */
    .form-group, .row {
        display: flex;
        flex-wrap: nowrap; /* Pastikan tidak patah */
        justify-content: space-between; /* Penting: label di kiri, value di kanan */
        padding: 3px 0;
        margin-bottom: 0 !important;
        border-bottom: 1px dashed #eee; /* Garis putus-putus tipis */
    }

    /* Pastikan label terlihat dan mengambil tempat yang pas */
    .col-form-label {
        font-weight: 400; /* Label normal */
        color: #333 !important;
        text-align: left !important;
        padding-right: 15px;
    }

    /* Pastikan nilai input (di kolom nilai) terlihat jelas */
    /* Gunakan class form-control-plaintext atau class khusus yang Anda buat */
    .form-control-plaintext, 
    .form-control[readonly], 
    .col-value-print { /* Tambahkan class ini ke div yang menampung nilai */
        display: block !important;
        background-color: transparent !important;
        border: none !important;
        font-weight: 600; /* Nilai lebih tebal */
        color: #000 !important;
        text-align: right !important; /* Penting: Nilai di Kanan */
    }
    
    /* Atur ulang tabel agar rapi */
    #alat-list-container table {
        border: 1px solid #000 !important;
    }
    #alat-list-container table thead {
        background: #eee !important;
    }
    #alat-list-container table td,
    #alat-list-container table th {
        border: 1px solid #000 !important;
        color: #000 !important;
        padding: 5px 8px;
    }
    
    /* Tombol WhatsApp di sembunyikan saat di print */
    .whatsapp-float-btn {
        display: none !important;
    }
}
/*preloader muter */

    #custom-preloader {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: #ffffff; display: flex; justify-content: center;
        align-items: center; z-index: 9999999; 
        transition: opacity 0.5s ease, visibility 0.5s ease;
    }
    .loader-wrapper { position: relative; display: flex; justify-content: center; align-items: center; }
    .ring-loader {
        position: absolute; width: 150px; height: 150px;
        border: 4px solid transparent; border-radius: 50%;
        animation: rotate-ring-custom 2s linear infinite;
    }
    .ring-loader:nth-child(1) { border-top-color: #0891b2; animation-duration: 1s; }
    .ring-loader:nth-child(2) { border-right-color: #f43f5e; animation-duration: 1.5s; }
    .ring-loader:nth-child(3) { border-bottom-color: #facc15; animation-duration: 2s; }
    .spinning-logo-custom {
        width: 80px !important; height: 80px !important;
        animation: rotate-logo-custom 3s linear infinite !important;
    }
    .loading-text-custom {
        position: absolute; top: 180px; font-weight: bold; color: #0891b2; letter-spacing: 2px;
    }
    @keyframes rotate-ring-custom { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
    @keyframes rotate-logo-custom { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  
    