/* assets/css/style.css */

/* 1. Menyembunyikan Warning Banner dari Google Apps Script */
#warning-banner, 
.action-bar, 
.goog-te-banner-frame { 
  display: none !important; 
}

/* 2. Pengaturan Video Background */
.bg-video {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Default (Layar Desktop/Laptop): Sembunyikan video HP */
.mobile-video {
  display: none;
}

.desktop-video {
  display: block;
}

/* Responsif HP (Layar kurang dari 768px): Tukar video */
@media (max-width: 768px) {
  .desktop-video {
    display: none;
  }
  .mobile-video {
    display: block;
  }
}

/* 3. Pengaturan Body Utama */
body { 
  top: 0 !important; 
  font-family: 'Plus Jakarta Sans', sans-serif; 
  scroll-behavior: smooth; 
  zoom: 100%;
  cursor: default;
}

/* 4. KURSOR HITAM CUSTOM */
.custom-cursor {
  width: 18px;
  height: 18px;
  background-color: #0f172a;
  border: 2px solid #ffffff;
  border-radius: 50% 0 50% 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) rotate(-25deg);
  transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

body.dark .custom-cursor {
  background-color: #ffffff;
  border: 2px solid #0f172a;
}

.custom-cursor.active {
  transform: translate(-50%, -50%) scale(0.85) rotate(-25deg);
  background-color: #2563eb;
}

/* 5. FlowAI & Vignette Background Transition */
.vignette-bg {
  background: linear-gradient(rgba(248, 250, 252, 0.88), rgba(241, 245, 249, 0.96)), url('https://images.unsplash.com/photo-1540151812223-c30b3fab58e6?auto=format&fit=crop&q=80&w=2000') no-repeat center center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

body.dark .vignette-bg {
  background: linear-gradient(rgba(2, 6, 23, 0.88), rgba(15, 23, 42, 0.96)), url('https://images.unsplash.com/photo-1540151812223-c30b3fab58e6?auto=format&fit=crop&q=80&w=2000') no-repeat center center !important;
  background-size: cover !important;
  background-attachment: fixed !important;
}

/* 6. Scrollbar Styling Standar Premium */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #3b82f6; border-radius: 10px; }
body.dark ::-webkit-scrollbar-thumb { background: #1e3a8a; }
::-webkit-scrollbar-thumb:hover { background: #60a5fa; }

.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* 7. FlowAI Glassmorphism Modern */
.glass-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 10px 30px -10px rgba(148, 163, 184, 0.12);
}

body.dark .glass-card {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5) !important;
}

/* 8. Sidebar FlowAI */
.sidebar-bg {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  border-right: 1px solid rgba(226, 232, 240, 0.8);
}

body.dark .sidebar-bg {
  background-color: rgba(15, 23, 42, 0.95) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.menu-active {
  background-color: rgba(239, 246, 255, 0.95);
  color: #1d4ed8; 
  font-weight: 700;
  border-left: 4px solid #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

body.dark .menu-active {
  background-color: rgba(30, 41, 59, 0.85) !important;
  color: #38bdf8 !important;
  border-left: 4px solid #38bdf8 !important;
  box-shadow: none;
}

body.dark input, 
body.dark select, 
body.dark textarea {
  background-color: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f9fafb !important;
}

.search-input:focus { outline: none; }

/* 9. FlowAI Smooth Entry & Staggered Motion Animations */
.animate-stagger-1 { animation: flowIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-stagger-2 { animation: flowIn 0.55s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-stagger-3 { animation: flowIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-stagger-4 { animation: flowIn 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

@keyframes flowIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.drawer-transition {
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
}

.table-row-hover {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.table-row-hover:hover {
  background-color: rgba(241, 245, 249, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -5px rgba(0,0,0,0.05);
  z-index: 10;
  position: relative;
}

body.dark .table-row-hover:hover {
  background-color: rgba(30, 41, 59, 0.8); 
  box-shadow: 0 6px 20px -5px rgba(0,0,0,0.3);
}

/* 10. CSS CETAK / PDF */
@media print {
  body * { visibility: hidden; }
  #print-holder, #print-holder * { visibility: visible; }
  #print-holder {
    position: absolute; left: 0; top: 0; width: 100%;
    background: #ffffff !important; color: #000000 !important; padding: 20px;
  }
}

.kop-surat { display: flex; align-items: center; gap: 20px; padding-bottom: 10px; }
.kop-header h1 { font-size: 18px; font-weight: 900; color: #1e3a8a; margin: 0; }
.kop-header h2 { font-size: 11px; font-weight: 800; color: #334155; margin: 3px 0; letter-spacing: 0.5px; }
.kop-header p { font-size: 10px; color: #64748b; margin: 0; }
.kop-line { height: 3px; background: linear-gradient(to right, #1e3a8a, #3b82f6); margin-bottom: 15px; }
.report-meta { display: flex; justify-content: space-between; font-size: 10px; color: #475569; margin-bottom: 20px; border-bottom: 1px dashed #cbd5e1; padding-bottom: 8px; }
.vessel-block { margin-bottom: 25px; page-break-inside: avoid; }
.vessel-header { background-color: #f1f5f9; padding: 8px 12px; border-left: 4px solid #1e3a8a; display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.vessel-title { font-size: 12px; font-weight: 800; color: #0f172a; }
.vessel-info { font-size: 10px; color: #475569; }
.print-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.print-table th { background-color: #e2e8f0; color: #1e293b; font-weight: 800; padding: 6px 8px; border: 1px solid #cbd5e1; text-align: left; }
.print-table td { padding: 6px 8px; border: 1px solid #cbd5e1; color: #334155; }
.badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 9px; font-weight: 800; }
.badge-expired { background: #fee2e2; color: #dc2626; }
.badge-critical { background: #ffe4e6; color: #e11d48; }
.badge-planning { background: #e0e7ff; color: #4338ca; }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-valid { background: #dcfce7; color: #15803d; }
.signature-section { display: flex; justify-content: space-between; margin-top: 40px; page-break-inside: avoid; }
.signature-box { width: 200px; text-align: center; font-size: 11px; }