/* ==========================================================================
   Kasbiy.id Design System - Charcoal & Terracotta Theme (Dark / Light Support)
   ========================================================================== */

/* Smooth Transition across theme switch */
body, .glass-nav, .bg-charcoal-950, .bg-charcoal-900, .bg-charcoal-850, #calc-drawer {
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

/* Fluid Typography & Text Balancing Support (Cegah Kata Menggantung / Yatim di Mobile) */
.font-heading, h1, h2, h3 {
  text-wrap: balance;
}

/* Custom Scrollbar (Dark Default) */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #11151c;
}

::-webkit-scrollbar-thumb {
  background: #283141;
  border-radius: 6px;
  border: 2px solid #11151c;
}

::-webkit-scrollbar-thumb:hover {
  background: #d46238;
}

/* Glassmorphism accents (Dark Default) */
.glass-nav {
  background: rgba(17, 21, 28, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.glass-card {
  background: rgba(26, 32, 44, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Subtle pattern background for hero and sections */
.bg-grid-pattern {
  background-image: radial-gradient(rgba(212, 98, 56, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ==========================================================================
   ANIMATED MOVING GRADIENTS FOR HERO MINI USP CARDS
   ========================================================================== */
@keyframes gradientShiftSmooth {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Animasi teks gradasi bergerak halus */
.animate-moving-gradient {
  background-size: 250% 250% !important;
  animation: gradientShiftSmooth 6s ease-in-out infinite !important;
}

/* Border gradasi berpendar bergerak untuk kartu USP */
.usp-glow-card {
  position: relative;
  border-radius: 1.15rem;
  padding: 1.5px;
  background: linear-gradient(130deg, rgba(212, 98, 56, 0.55), rgba(217, 119, 6, 0.4), rgba(212, 98, 56, 0.15), rgba(217, 119, 6, 0.55));
  background-size: 300% 300%;
  animation: gradientShiftSmooth 7s ease infinite;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.usp-glow-card:hover {
  transform: translateY(-3.5px);
  box-shadow: 0 12px 28px -4px rgba(212, 98, 56, 0.28);
}

.usp-glow-inner {
  border-radius: calc(1.15rem - 1.5px);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: rgba(17, 21, 28, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Adaptasi di Light Mode */
html.light .usp-glow-card {
  background: linear-gradient(130deg, rgba(212, 98, 56, 0.45), rgba(217, 119, 6, 0.35), rgba(226, 232, 240, 0.9), rgba(212, 98, 56, 0.45)) !important;
  box-shadow: 0 4px 15px -2px rgba(15, 23, 42, 0.05) !important;
}

html.light .usp-glow-card:hover {
  box-shadow: 0 12px 28px -3px rgba(212, 98, 56, 0.18) !important;
}

html.light .usp-glow-inner {
  background-color: #ffffff !important;
}

html.light .animate-moving-gradient {
  background-image: linear-gradient(to right, #c2410c, #b45309, #c2410c) !important;
}

/* Smooth line clamp for blog cards */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Logo Helper Styling */
#main-logo,
#footer-logo,
#umbrella-logo {
  mix-blend-mode: normal;
  transition: opacity 0.25s ease-in-out, transform 0.25s ease-in-out;
}

.brand-title {
  color: #ffffff;
  transition: color 0.25s ease;
}

.brand-tagline {
  color: #94a3b8;
  transition: color 0.25s ease;
}

html.light .brand-title {
  color: #0f172a !important;
}

html.light .brand-tagline {
  color: #64748b !important;
}

/* ==========================================================================
   LIGHT MODE OVERRIDES (Warm Editorial Paper & Charcoal Brand Identity)
   ========================================================================== */
html.light body {
  background-color: #f8fafc !important;
  color: #1e293b !important;
}

/* Base Charcoal Surface Overrides for Light Mode */
html.light .bg-charcoal-950 {
  background-color: #f8fafc !important;
}

html.light .bg-charcoal-900 {
  background-color: #ffffff !important;
}

html.light .bg-charcoal-850 {
  background-color: #ffffff !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
}

html.light .bg-charcoal-800 {
  background-color: #f1f5f9 !important;
}

html.light .bg-charcoal-700 {
  background-color: #e2e8f0 !important;
}

html.light .bg-charcoal-900\/60 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

/* Secondary Button and Pill Elements in Light Mode */
html.light .bg-white\/5,
html.light .bg-white\/10 {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

html.light .bg-white\/5:hover,
html.light .bg-white\/10:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html.light a.bg-charcoal-850,
html.light button.bg-charcoal-850 {
  background-color: #ffffff !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

html.light a.bg-charcoal-850:hover,
html.light button.bg-charcoal-850:hover {
  background-color: #f8fafc !important;
  border-color: #d46238 !important;
  color: #be4e27 !important;
}

/* Ensure h1 paragraph children are dark */
html.light h1 p {
  color: #0f172a !important;
}

/* Borders in Light Mode */
html.light .border-white\/5,
html.light .border-white\/10,
html.light .border-white\/15,
html.light .border-white\/20,
html.light .border-white\/25,
html.light .border-white\/30 {
  border-color: #e2e8f0 !important;
}

html.light .divide-white\/5 > * + *,
html.light .divide-white\/10 > * + * {
  border-color: #f1f5f9 !important;
}

/* Nav & Header */
html.light .glass-nav {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

html.light .glass-card {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #e2e8f0 !important;
}

/* Headings & Text Clarity */
html.light h1:not([class*="text-terracotta"]):not([class*="text-transparent"]),
html.light h2:not([class*="text-terracotta"]):not([class*="text-transparent"]):not(#drawer-title),
html.light h3:not([class*="text-terracotta"]):not([class*="text-transparent"]),
html.light h4:not([class*="text-terracotta"]):not([class*="text-transparent"]),
html.light h5:not([class*="text-terracotta"]):not([class*="text-transparent"]),
html.light h6:not([class*="text-terracotta"]):not([class*="text-transparent"]) {
  color: #0f172a !important;
}

/* General text-white override (except on solid colored buttons & badges) */
html.light .text-white:not(.btn-text-white):not([class*="bg-terracotta"]):not([class*="from-terracotta"]):not([class*="bg-gradient"]):not([class*="bg-emerald"]):not([class*="bg-sky"]):not([class*="bg-black"]):not([class*="bg-slate"]):not([class*="text-transparent"]) {
  color: #0f172a !important;
}

/* Gradient Titles & Text Clips in Light Mode */
html.light .bg-clip-text.text-transparent {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background-image: linear-gradient(to right, #c2410c, #b45309, #c2410c) !important;
}

/* Crisp White Text for Filled Action Buttons & Badges (Solid Fills Only) */
html.light button.bg-gradient-to-r,
html.light a.bg-gradient-to-r,
html.light button.bg-terracotta-500,
html.light button.bg-terracotta-600,
html.light a.bg-terracotta-500,
html.light a.bg-terracotta-600,
html.light a.bg-emerald-600,
html.light button.bg-emerald-600,
html.light button.bg-emerald-700,
html.light button.bg-gradient-to-r *,
html.light a.bg-gradient-to-r *,
html.light button.bg-terracotta-500 *,
html.light button.bg-terracotta-600 *,
html.light a.bg-terracotta-500 *,
html.light a.bg-terracotta-600 *,
html.light a.bg-emerald-600 *,
html.light button.bg-emerald-600 *,
html.light button.bg-emerald-700 *,
html.light .btn-text-white,
html.light .btn-text-white * {
  color: #ffffff !important;
}

/* Contrast Dark Text for Subtle/Ghost/Opacity Buttons (Dashboard, View Details, Badges) */
html.light [class*="bg-terracotta-500/"],
html.light [class*="bg-terracotta-600/"],
html.light a[class*="bg-terracotta-500/"],
html.light button[class*="bg-terracotta-500/"],
html.light #nav-dashboard-btn,
html.light #mobile-nav-dashboard-btn,
html.light #drawer-dashboard-btn {
  color: #9a3412 !important;
}

html.light [class*="bg-terracotta-500/"] *,
html.light [class*="bg-terracotta-600/"] *,
html.light a[class*="bg-terracotta-500/"] *,
html.light button[class*="bg-terracotta-500/"] *,
html.light #nav-dashboard-btn *,
html.light #mobile-nav-dashboard-btn *,
html.light #drawer-dashboard-btn * {
  color: #9a3412 !important;
}

/* Hover State for Subtle Buttons in Light Mode */
html.light #nav-dashboard-btn:hover,
html.light #drawer-dashboard-btn:hover,
html.light #mobile-nav-dashboard-btn:hover,
html.light button[class*="bg-terracotta-500/"]:hover,
html.light a[class*="bg-terracotta-500/"]:hover {
  background-color: #ea580c !important;
  color: #ffffff !important;
}
html.light #nav-dashboard-btn:hover *,
html.light #drawer-dashboard-btn:hover *,
html.light #mobile-nav-dashboard-btn:hover *,
html.light button[class*="bg-terracotta-500/"]:hover *,
html.light a[class*="bg-terracotta-500/"]:hover * {
  color: #ffffff !important;
}

/* Text Palette Shades in Light Mode */
html.light .text-slate-100,
html.light .text-slate-200 {
  color: #1e293b !important;
}

html.light .text-slate-300 {
  color: #334155 !important;
}

html.light .text-slate-400 {
  color: #475569 !important;
}

html.light .text-slate-500 {
  color: #64748b !important;
}

/* WCAG Compliant Text Accent Colors in Light Mode (Contrast Ratio > 5:1) */
html.light .text-terracotta-300,
html.light .text-terracotta-400 {
  color: #be4e27 !important; /* Terracotta 600: 5.8:1 contrast */
}

html.light .text-warmamber {
  color: #b45309 !important; /* Amber 700: 5.2:1 contrast */
}

html.light .text-emerald-300,
html.light .text-emerald-400 {
  color: #047857 !important; /* Emerald 700: 5.4:1 contrast */
}

html.light .text-sky-300,
html.light .text-sky-400 {
  color: #0369a1 !important; /* Sky 700: 5.6:1 contrast */
}

html.light .text-purple-300,
html.light .text-purple-400 {
  color: #6b21a8 !important; /* Purple 700: 6.1:1 contrast */
}

/* Rounded Icon Boxes & Accent Badges in Light Mode */
html.light .bg-terracotta-500\/15,
html.light .bg-terracotta-500\/10 {
  background-color: #fff1eb !important;
  border-color: #fdba74 !important;
}

html.light .bg-warmamber\/15,
html.light .bg-warmamber\/10 {
  background-color: #fef3c7 !important;
  border-color: #fcd34d !important;
}

html.light .bg-emerald-500\/15,
html.light .bg-emerald-500\/10 {
  background-color: #ecfdf5 !important;
  border-color: #6ee7b7 !important;
}

html.light .bg-sky-500\/15,
html.light .bg-sky-500\/10 {
  background-color: #f0f9ff !important;
  border-color: #7dd3fc !important;
}

html.light .bg-purple-500\/15,
html.light .bg-purple-500\/10 {
  background-color: #faf5ff !important;
  border-color: #d8b4fe !important;
}

/* Top Buttons: Theme Toggle, Admin Button & Mobile Menu in Light Mode */
html.light #theme-toggle,
html.light #nav-admin-btn,
html.light #mobile-nav-toggle {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

html.light #theme-toggle:hover,
html.light #nav-admin-btn:hover,
html.light #mobile-nav-toggle:hover {
  background-color: #e2e8f0 !important;
  color: #be4e27 !important;
  border-color: #d46238 !important;
}

html.light #nav-dashboard-btn {
  background-color: #fff1eb !important;
  color: #be4e27 !important;
  border-color: #fca585 !important;
}

html.light #nav-dashboard-btn:hover {
  background-color: #be4e27 !important;
  color: #ffffff !important;
  border-color: #be4e27 !important;
}

html.light #mobile-nav-dropdown {
  background-color: #ffffff !important;
  border-top-color: #e2e8f0 !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08) !important;
}

html.light #mobile-nav-dropdown a {
  color: #334155 !important;
}

html.light #mobile-nav-dropdown a:hover {
  background-color: #f8fafc !important;
  color: #be4e27 !important;
}

/* Forms, Inputs, Selects, Textareas */
html.light input:not([type="checkbox"]):not([type="radio"]),
html.light select,
html.light textarea {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html.light input:focus,
html.light select:focus,
html.light textarea:focus {
  border-color: #d46238 !important;
  box-shadow: 0 0 0 3px rgba(212, 98, 56, 0.15) !important;
}

html.light input::placeholder,
html.light textarea::placeholder {
  color: #94a3b8 !important;
}

/* Slide-out Drawer Kalkulator Base Styles */
#calc-drawer {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

/* Slide-out Drawer Kalkulator in Light Mode */
html.light #calc-drawer {
  background-color: #ffffff !important;
  border-left-color: #e2e8f0 !important;
  box-shadow: -10px 0 30px rgba(15, 23, 42, 0.08) !important;
}

html.light #calc-drawer > div:first-child {
  background-color: #f8fafc !important;
  border-bottom-color: #e2e8f0 !important;
}

html.light #calc-drawer #drawer-title {
  color: #0f172a !important;
}

html.light #calc-drawer #drawer-subtitle {
  color: #475569 !important;
}

html.light #calc-drawer label {
  color: #1e293b !important;
}

html.light #calc-drawer details {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.light #calc-drawer details summary {
  color: #be4e27 !important;
}

html.light #calc-drawer details summary:hover {
  background-color: #f1f5f9 !important;
}

html.light #calc-drawer details table thead tr {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

html.light #calc-drawer details table tbody tr {
  background-color: #ffffff !important;
  color: #334155 !important;
}

/* ==========================================================================
   KALKULATOR CETAK LENGKAP PADA MODE TERANG (USER & ADMIN)
   ========================================================================== */
html.light #calc-drawer .bg-charcoal-850 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

/* Header Slide-Out Drawer di Mode Terang */
html.light #calc-drawer > div:first-child {
  background-color: #f8fafc !important;
  border-bottom-color: #e2e8f0 !important;
}

html.light #admin-badge {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
  border-color: #6ee7b7 !important;
}

html.light #drawer-login-toggle,
html.light #calc-drawer button[aria-label="Tutup Kalkulator"] {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border-color: #cbd5e1 !important;
}

html.light #drawer-login-toggle:hover {
  background-color: #fff7ed !important;
  color: #c2410c !important;
  border-color: #fdba74 !important;
}

html.light #calc-drawer button[aria-label="Tutup Kalkulator"]:hover {
  background-color: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
}

/* Kotak Live Preview Simulasi Interaktif */
html.light #live-calc-box {
  background-color: #fff7ed !important;
  border-color: #fed7aa !important;
}

html.light #live-calc-box span.text-slate-300,
html.light #live-calc-box span.text-slate-400 {
  color: #1e293b !important;
}

html.light #live-calc-box #live-unit-price {
  color: #c2410c !important;
}

html.light #live-calc-box #live-total-price {
  color: #047857 !important;
}

html.light #live-calc-box #live-detail-print,
html.light #live-calc-box #live-detail-finishing {
  color: #475569 !important;
}

html.light #live-calc-box div[class*="border-"] {
  border-color: #ffedd5 !important;
}

/* Kartu Hasil Perhitungan Item Buku (#results) di Mode Terang */
html.light #results .bg-charcoal-850 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

html.light #results .font-bold.text-white,
html.light #results p.text-white,
html.light #results p.font-bold {
  color: #0f172a !important;
}

html.light #results span.text-slate-200,
html.light #results p.text-slate-300 {
  color: #1e293b !important;
}

html.light #results p.text-slate-400 {
  color: #475569 !important;
}

html.light #results span.text-emerald-400 {
  color: #047857 !important;
}

html.light #results button[onclick^="deleteResult"] {
  background-color: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #b91c1c !important;
}

html.light #results button[onclick^="deleteResult"]:hover {
  background-color: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #ffffff !important;
}

/* Kotak Total Ringkasan Biaya di Mode Terang */
html.light #results [class*="bg-warmamber"] {
  background-color: #fef3c7 !important;
  border-color: #fde68a !important;
}

html.light #results [class*="bg-warmamber"] span.text-amber-200 {
  color: #78350f !important;
}

html.light #results [class*="bg-warmamber"] span.text-amber-400 {
  color: #b45309 !important;
}

/* Kartu Analisis Profit & Margin Kalkulator Admin (#admin-calc-margin-card) */
html.light #admin-calc-margin-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%) !important;
  border-color: #a7f3d0 !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.06) !important;
}

html.light #admin-calc-margin-card span.text-emerald-400 {
  color: #065f46 !important;
}

html.light #admin-calc-margin-card button.text-terracotta-300 {
  color: #9a3412 !important;
}

html.light #admin-calc-margin-card div.bg-charcoal-950\/70,
html.light #admin-calc-margin-card [class*="bg-charcoal-950"] {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

html.light #admin-calc-margin-card [class*="bg-charcoal-950"] span.text-slate-400 {
  color: #64748b !important;
}

html.light #admin-live-omset {
  color: #0f172a !important;
}

html.light #admin-live-hpp {
  color: #b45309 !important;
}

html.light #admin-live-profit {
  color: #047857 !important;
}

html.light #admin-live-margin {
  color: #065f46 !important;
}

/* Bagian 2 Data Pengirim & Pemesan di Mode Terang */
html.light #calc-drawer label.text-slate-400 {
  color: #334155 !important;
}

html.light #calc-drawer div.border-t.border-white\/10 {
  border-top-color: #e2e8f0 !important;
}

html.light #calc-drawer label[class*="bg-terracotta-500\/10"] {
  background-color: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #9a3412 !important;
}

/* Tombol Aksi di Bagian Bawah Drawer */
html.light #calc-drawer button[onclick="resetAll()"] {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

html.light #calc-drawer button[onclick="resetAll()"]:hover {
  background-color: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

html.light #calc-drawer button[onclick="closeCalculator()"].sm\:hidden {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

/* Cards & Bento Grid (Why Us, Portofolio, Klien) */
html.light .why-us-card,
html.light .portfolio-card,
html.light .client-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03) !important;
}

html.light .why-us-card:hover,
html.light .portfolio-card:hover,
html.light .client-card:hover {
  border-color: #d46238 !important;
  box-shadow: 0 12px 28px -4px rgba(212, 98, 56, 0.14) !important;
}

/* Section CTA Banner in Light Mode */
html.light section.bg-gradient-to-r {
  background: linear-gradient(135deg, #fff5f0 0%, #ffffff 50%, #f8fafc 100%) !important;
  border-top-color: #fed7aa !important;
  border-bottom-color: #fed7aa !important;
}

html.light section.bg-gradient-to-r h2 {
  color: #0f172a !important;
}

html.light section.bg-gradient-to-r p {
  color: #475569 !important;
}

html.light section.bg-gradient-to-r a.bg-white\/10 {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}

html.light section.bg-gradient-to-r a.bg-white\/10:hover {
  background-color: #f8fafc !important;
  border-color: #d46238 !important;
  color: #be4e27 !important;
}

/* Section Artikel Card in Light Mode */
html.light #artikel article {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 8px 30px -4px rgba(15, 23, 42, 0.06) !important;
}

html.light #artikel article > div:first-child {
  background: linear-gradient(135deg, #fff7ed 0%, #f1f5f9 100%) !important;
  border-color: #ffedd5 !important;
}

/* Section Tentang Kami in Light Mode */
html.light #about .lg\:col-span-5 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 12px 35px -5px rgba(15, 23, 42, 0.08) !important;
}

html.light #about span.bg-charcoal-800 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}

/* Footer in Light Mode */
html.light footer {
  background-color: #f8fafc !important;
  border-top-color: #e2e8f0 !important;
}

html.light footer .text-slate-400 {
  color: #475569 !important;
}

/* Light Scrollbar */
html.light ::-webkit-scrollbar-track {
  background: #f1f5f9;
}
html.light ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-color: #f1f5f9;
}
html.light ::-webkit-scrollbar-thumb:hover {
  background: #d46238;
}

/* Portfolio & Lightbox in Light Mode */
html.light #portfolio-lightbox > div {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25) !important;
}

html.light #portfolio-lightbox .bg-charcoal-900 {
  background-color: #ffffff !important;
}

html.light #lightbox-title {
  color: #0f172a !important;
}

html.light #lightbox-description {
  color: #334155 !important;
}

html.light #portfolio-lightbox .bg-charcoal-950\/70 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.light #portfolio-filter button:not(.bg-terracotta-500) {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

html.light #portfolio-pagination-wrap button:not(.bg-terracotta-500) {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

/* Modal Detail Klien di Mode Terang */
html.light #client-detail-modal > div {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2) !important;
}

html.light #client-detail-modal .bg-charcoal-850 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.light #client-detail-modal .bg-charcoal-950 {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

/* Modal Baca Artikel Lengkap di Mode Terang */
html.light #article-modal > div {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2) !important;
}

/* Modal Form Klien (Tambah / Edit) di Mode Terang */
html.light #client-form-modal > div {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2) !important;
}

/* Modal Login Khusus Admin di Mode Terang */
html.light #login-modal > div {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.2) !important;
}

html.light #login-modal #toggleAdminPassBtn {
  color: #64748b;
}

html.light #login-modal #toggleAdminPassBtn:hover {
  color: #d46238;
}

/* ==========================================================================
   HALAMAN DASBOR ADMIN LENGKAP DI MODE TERANG (#admin-dashboard-modal)
   ========================================================================== */
html.light #admin-dashboard-modal > div {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25) !important;
}

/* Header Dasbor Admin */
html.light #admin-dashboard-modal > div > div:first-child {
  background-color: #f8fafc !important;
  border-bottom-color: #e2e8f0 !important;
}

html.light #admin-dashboard-modal h3,
html.light #admin-dashboard-modal h4 {
  color: #0f172a !important;
}

html.light #admin-dashboard-modal p {
  color: #475569 !important;
}

/* Tab Bar Navigasi Dasbor */
html.light #admin-dashboard-modal > div > div:nth-child(2) {
  background-color: #f1f5f9 !important;
  border-bottom-color: #e2e8f0 !important;
}

html.light #admin-dashboard-modal button[id^="tab-btn-"] {
  color: #475569 !important;
}

html.light #admin-dashboard-modal button[id^="tab-btn-"]:hover {
  color: #0f172a !important;
  background-color: rgba(255, 255, 255, 0.6) !important;
}

html.light #admin-dashboard-modal button[id^="tab-btn-"].border-terracotta-500 {
  color: #be4e27 !important;
  background-color: #ffffff !important;
  border-bottom-color: #d46238 !important;
  box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.03) !important;
}

/* Kontainer Card & Panel di dalam Dasbor */
html.light #admin-dashboard-modal .bg-charcoal-850 {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

html.light #admin-dashboard-modal .bg-charcoal-950 {
  background-color: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
}

html.light #admin-dashboard-modal .bg-charcoal-950\/60,
html.light #admin-dashboard-modal .bg-charcoal-950\/70 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* Input, Select, Textarea di Dasbor */
html.light #admin-dashboard-modal input:not([type="checkbox"]):not([type="radio"]),
html.light #admin-dashboard-modal select:not(.order-status-select):not(.payment-status-select),
html.light #admin-dashboard-modal textarea {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

/* Styling Dropdown Status Produksi & Status Pembayaran di Seluruh Mode */
.order-status-select,
.payment-status-select {
  transition: all 0.2s ease;
  font-weight: 600;
  border-width: 1px;
  cursor: pointer;
}

.order-status-select option,
.payment-status-select option {
  background-color: #11151c;
  color: #f8fafc;
}

/* Styling Custom Dropdown Status Produksi & Status Pembayaran dengan Phosphor Icons */
.status-dropdown-container {
  position: relative;
  display: inline-block;
}

.status-popover-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  min-width: 140px;
  background-color: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.625rem;
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.45), 0 6px 12px -2px rgba(0, 0, 0, 0.3);
  padding: 4px;
}

html.light .status-popover-menu {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 6px 12px -2px rgba(15, 23, 42, 0.08) !important;
}

.status-popover-item {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.15s ease;
  cursor: pointer;
  text-align: left;
  border: none;
  background: transparent;
  color: #e2e8f0;
}

.status-popover-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

html.light .status-popover-item {
  color: #334155 !important;
}

html.light .status-popover-item:hover {
  background-color: #f1f5f9 !important;
}

.order-status-btn,
.payment-status-btn {
  transition: all 0.2s ease;
  font-weight: 600;
  border-width: 1px;
  cursor: pointer;
  white-space: nowrap;
}

/* Base Dark Mode Styling untuk Custom Buttons & Selects */
.order-status-btn.status-cek_harga,
select.order-status-select.status-cek_harga {
  background-color: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #fcd34d !important;
}
.order-status-btn.status-queue,
select.order-status-select.status-queue {
  background-color: rgba(56, 189, 248, 0.18) !important;
  border-color: rgba(56, 189, 248, 0.45) !important;
  color: #7dd3fc !important;
}
.order-status-btn.status-printing,
select.order-status-select.status-printing {
  background-color: rgba(129, 140, 248, 0.18) !important;
  border-color: rgba(129, 140, 248, 0.45) !important;
  color: #a5b4fc !important;
}
.order-status-btn.status-finishing,
select.order-status-select.status-finishing {
  background-color: rgba(192, 132, 252, 0.18) !important;
  border-color: rgba(192, 132, 252, 0.45) !important;
  color: #d8b4fe !important;
}
.order-status-btn.status-completed,
select.order-status-select.status-completed {
  background-color: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #6ee7b7 !important;
}

.payment-status-btn.pay-paid,
select.payment-status-select.pay-paid {
  background-color: rgba(16, 185, 129, 0.18) !important;
  border-color: rgba(16, 185, 129, 0.45) !important;
  color: #6ee7b7 !important;
}
.payment-status-btn.pay-down_payment,
select.payment-status-select.pay-down_payment {
  background-color: rgba(245, 158, 11, 0.18) !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
  color: #fcd34d !important;
}
.payment-status-btn.pay-unpaid,
select.payment-status-select.pay-unpaid {
  background-color: rgba(244, 63, 94, 0.18) !important;
  border-color: rgba(244, 63, 94, 0.45) !important;
  color: #fda4af !important;
}

html.light .order-status-select option,
html.light .payment-status-select option {
  background-color: #ffffff;
  color: #0f172a;
}

/* Varian Warna Status Produksi (Light Mode Overrides) */
html.light #admin-dashboard-modal .order-status-btn.status-cek_harga,
html.light #admin-dashboard-modal select.order-status-select.status-cek_harga {
  background-color: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #b45309 !important;
}
html.light #admin-dashboard-modal .order-status-btn.status-queue,
html.light #admin-dashboard-modal select.order-status-select.status-queue {
  background-color: #e0f2fe !important;
  border-color: #38bdf8 !important;
  color: #0369a1 !important;
}
html.light #admin-dashboard-modal .order-status-btn.status-printing,
html.light #admin-dashboard-modal select.order-status-select.status-printing {
  background-color: #e0e7ff !important;
  border-color: #818cf8 !important;
  color: #4338ca !important;
}
html.light #admin-dashboard-modal .order-status-btn.status-finishing,
html.light #admin-dashboard-modal select.order-status-select.status-finishing {
  background-color: #f3e8ff !important;
  border-color: #c084fc !important;
  color: #7e22ce !important;
}
html.light #admin-dashboard-modal .order-status-btn.status-completed,
html.light #admin-dashboard-modal select.order-status-select.status-completed {
  background-color: #d1fae5 !important;
  border-color: #34d399 !important;
  color: #047857 !important;
}

/* Varian Warna Status Pembayaran (Light Mode Overrides) */
html.light #admin-dashboard-modal .payment-status-btn.pay-paid,
html.light #admin-dashboard-modal select.payment-status-select.pay-paid {
  background-color: #d1fae5 !important;
  border-color: #10b981 !important;
  color: #047857 !important;
}
html.light #admin-dashboard-modal .payment-status-btn.pay-down_payment,
html.light #admin-dashboard-modal select.payment-status-select.pay-down_payment {
  background-color: #fef3c7 !important;
  border-color: #f59e0b !important;
  color: #b45309 !important;
}
html.light #admin-dashboard-modal .payment-status-btn.pay-unpaid,
html.light #admin-dashboard-modal select.payment-status-select.pay-unpaid {
  background-color: #ffe4e6 !important;
  border-color: #fb7185 !important;
  color: #be123c !important;
}

/* Penyesuaian Kalender Flatpickr Tema Kasbiy */
.flatpickr-calendar {
  background: #11151c !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 1rem !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4) !important;
  font-family: inherit !important;
  z-index: 9999 !important;
}
.flatpickr-calendar .flatpickr-day.selected,
.flatpickr-calendar .flatpickr-day.startRange,
.flatpickr-calendar .flatpickr-day.endRange {
  background: #be4e27 !important;
  border-color: #be4e27 !important;
  color: #ffffff !important;
}
.flatpickr-calendar .flatpickr-day:hover {
  background: rgba(190, 78, 39, 0.25) !important;
}
.flatpickr-months .flatpickr-month {
  background: #11151c !important;
  color: #ffffff !important;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: #11151c !important;
}

html.light #admin-dashboard-modal label {
  color: #1e293b !important;
}

/* Tabel di Seluruh Dasbor Admin */
html.light #admin-dashboard-modal table {
  color: #1e293b !important;
}

html.light #admin-dashboard-modal table thead tr {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

html.light #admin-dashboard-modal table thead th {
  color: #0f172a !important;
  font-weight: 700 !important;
}

html.light #admin-dashboard-modal table tbody tr {
  background-color: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

html.light #admin-dashboard-modal table tbody tr:hover {
  background-color: #f8fafc !important;
}

html.light #admin-dashboard-modal table tbody td {
  color: #1e293b !important;
}

html.light #admin-dashboard-modal table tbody td .font-bold,
html.light #admin-dashboard-modal table tbody td .font-semibold {
  color: #0f172a !important;
}

/* Input Harga Inline di Tabel Pricing */
html.light #admin-dashboard-modal table input[type="number"] {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #b45309 !important;
  font-weight: 700 !important;
}

html.light #admin-dashboard-modal table input[type="number"]:focus {
  border-color: #d46238 !important;
  box-shadow: 0 0 0 2px rgba(212, 98, 56, 0.2) !important;
}

/* Card Metrik di Tab Orders */
html.light #tab-content-orders .grid > div {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

html.light #tab-content-orders .grid > div p:first-child {
  color: #475569 !important;
  font-weight: 600 !important;
}

/* Form Editor CMS (Artikel & Portofolio) */
html.light #article-editor-card,
html.light #portfolio-editor-card {
  background-color: #ffffff !important;
  border: 1px solid #fed7aa !important;
  box-shadow: 0 4px 16px rgba(212, 98, 56, 0.08) !important;
}

html.light #article-form-title,
html.light #portfolio-form-title {
  color: #be4e27 !important;
}

html.light #portfolio-editor-card label[for="pf-files"] {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #475569 !important;
}

html.light #portfolio-editor-card label[for="pf-files"]:hover {
  border-color: #d46238 !important;
  background-color: #fff7ed !important;
}

/* Grid Pattern in Hero */
html.light .bg-grid-pattern {
  background-image: radial-gradient(rgba(212, 98, 56, 0.16) 1px, transparent 1px);
}

/* ==========================================================================
   INFINITE MARQUEE SCROLL (KLIEN LOGO CAROUSEL)
   ========================================================================== */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Pembungkus Marquee: Terpotong Rapi di Sisi Horizontal, Bebas Melayang di Vertikal */
.marquee-viewport-wrap {
  overflow-x: clip;
  overflow-y: visible;
}

.animate-marquee-infinite {
  display: flex;
  width: max-content;
  animation: marqueeScroll 45s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Bayangan Kartu Logo Normal: Pas Ramping Selebar Logo (80px) */
.client-card {
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.4);
}

/* Floating Rich Tooltip Dasar untuk Klien: Bayangan Otomatis Melebar Mengikuti Wadah */
.client-tooltip {
  transform: translateX(-50%) translateY(-8px) scale(0.92);
  transform-origin: top center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
  width: max-content;
  max-width: min(340px, calc(100vw - 36px));
  box-shadow: 0 14px 30px -4px rgba(0, 0, 0, 0.45), 0 4px 10px -2px rgba(0, 0, 0, 0.25);
}

/* Category Ticker Animation (Teks Kategori Berjalan Mulus Berjeda di Dalam Tooltip) */
@keyframes categoryTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.category-ticker-track {
  display: inline-flex;
  white-space: nowrap;
  will-change: transform;
}

/* Pause marquee, tampilkan tooltip & jalankan ticker saat mouse hover (desktop berkursor) */
@media (hover: hover) and (pointer: fine) {
  .animate-marquee-infinite:hover {
    animation-play-state: paused;
  }
  .client-card:hover {
    border-color: rgba(212, 98, 56, 0.7) !important;
    box-shadow: 0 10px 25px -4px rgba(212, 98, 56, 0.25) !important;
    z-index: 50 !important;
  }
  .client-card:hover .client-logo-img {
    opacity: 1 !important;
    transform: scale(1.1) !important;
  }
  .client-card:hover .client-tooltip {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) scale(1) !important;
  }
  .client-card:hover .category-ticker-track {
    animation: categoryTicker 8s linear infinite;
    animation-delay: 1.2s;
  }
}

/* Interaksi Sentuhan di Smartphone / Layar Sentuh (Touch Active):
   - Marquee track seketika berhenti saat disentuh
   - Tooltip nama dan kategori klien melayang muncul tepat di bawah logo
   - Ticker kategori otomatis berjalan mulus dengan jeda */
.animate-marquee-infinite.is-paused-touch {
  animation-play-state: paused !important;
}

.client-card.is-touch-active,
.client-card.is-locked-card {
  border-color: rgba(212, 98, 56, 0.85) !important;
  box-shadow: 0 0 20px 2px rgba(212, 98, 56, 0.35) !important;
  transform: translateY(-6px) !important;
  z-index: 50 !important;
}

.client-card.is-touch-active .client-logo-img,
.client-card.is-locked-card .client-logo-img {
  opacity: 1 !important;
  transform: scale(1.1) !important;
}

.client-card.is-touch-active .client-tooltip,
.client-card.is-locked-card .client-tooltip {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) scale(1) !important;
}

.client-card.is-touch-active .category-ticker-track,
.client-card.is-locked-card .category-ticker-track {
  animation: categoryTicker 8s linear infinite !important;
  animation-delay: 1.2s !important;
}

/* Masker Halus Sisi Kiri & Kanan Barisan Marquee */
.marquee-mask-left {
  background: linear-gradient(to right, #0b0e14 0%, transparent 100%);
}

.marquee-mask-right {
  background: linear-gradient(to left, #0b0e14 0%, transparent 100%);
}

html.light .marquee-mask-left {
  background: linear-gradient(to right, #f8fafc 0%, transparent 100%) !important;
}

html.light .marquee-mask-right {
  background: linear-gradient(to left, #f8fafc 0%, transparent 100%) !important;
}

/* ==========================================================================
   LIGHTBOX ZOOM UTILITIES
   ========================================================================== */
.cursor-zoom-in {
  cursor: zoom-in;
}

.cursor-zoom-out {
  cursor: zoom-out;
}

.lightbox-img-transition {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center center;
}

/* ==========================================================================
   NAVBAR DASHBOARD BUTTON ALIGNMENT
   ========================================================================== */
#nav-dashboard-btn:not(.hidden) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Hide scrollbar for clean horizontal tabs on touch screens */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   DASHBOARD MOBILE HEADER RUNNING TEXT TICKER
   ========================================================================== */
@keyframes headerTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-header-ticker {
  display: inline-flex;
  width: max-content;
  animation: headerTicker 16s linear infinite;
  will-change: transform;
}

.animate-header-ticker:hover {
  animation-play-state: paused;
}

/* Contained Dashboard Table Scroll with always-visible scrollbar */
.dashboard-table-container {
  max-height: 52vh;
  overflow-y: auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
  .dashboard-table-container {
    max-height: 48vh;
  }
}

/* ==========================================================================
   PORTFOLIO BOOK COVER MOCKUP & SHADOW (REFERENSI SARAN-REVISI)
   ========================================================================== */
.book-cover-frame {
  width: 100%;
  aspect-ratio: 148 / 210;
  height: 290px;
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 640px) {
  .book-cover-frame {
    height: 340px;
  }
}

@media (min-width: 1024px) {
  .book-cover-frame {
    height: 380px;
    max-height: 400px;
  }
}

.portfolio-card {
  height: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.book-cover-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.portfolio-card:hover .book-cover-frame {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 20px 30px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 98, 56, 0.2);
}

/* Efek lipatan punggung buku di sisi kiri (Realistic Spine Shadow) */
.book-spine-effect {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 14px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.45) 0%, rgba(255, 255, 255, 0.1) 40%, transparent 100%);
  pointer-events: none;
  z-index: 5;
}

html.light .book-cover-frame {
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.12), 0 4px 6px -4px rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   PORTFOLIO HORIZONTAL BOOK SLIDER (CAROUSEL & PEEK AFFORDANCE)
   ========================================================================== */
.portfolio-slider-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.5rem 0.25rem 1rem 0.25rem;
  align-items: stretch;
}

.portfolio-slider-track::-webkit-scrollbar {
  display: none;
}

/* Ukuran kartu geser:
   - Mobile: 78vw (peek preview buku berikutnya agar terdorong swipe)
   - Tablet: 2 kartu sejajar
   - Desktop PC: Tepat 3 kartu sejajar setara rasio fisik A5 */
.portfolio-slide-item {
  flex: 0 0 78vw;
  max-width: 300px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  height: 100%;
}

@media (min-width: 640px) {
  .portfolio-slide-item {
    flex: 0 0 calc((100% - 1.25rem) / 2);
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .portfolio-slide-item {
    flex: 0 0 calc((100% - 2.5rem) / 3);
  }
}

/* Navigasi Panah Slider Melayang Modern di Tepi Kiri & Kanan Gambar */
.portfolio-nav-arrow,
.portfolio-nav-btn {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  background-color: rgba(17, 21, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.55), 0 4px 10px -3px rgba(0, 0, 0, 0.4);
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 25;
}

.portfolio-nav-arrow-prev {
  left: -0.75rem;
}

.portfolio-nav-arrow-next {
  right: -0.75rem;
}

@media (min-width: 1024px) {
  .portfolio-nav-arrow,
  .portfolio-nav-btn {
    width: 3.25rem;
    height: 3.25rem;
  }
  .portfolio-nav-arrow-prev {
    left: -1.25rem;
  }
  .portfolio-nav-arrow-next {
    right: -1.25rem;
  }
}

.portfolio-nav-arrow:hover:not(:disabled),
.portfolio-nav-btn:hover:not(:disabled) {
  background-color: #d46238;
  border-color: #e3977c;
  color: #ffffff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 15px 30px -5px rgba(212, 98, 56, 0.45), 0 0 15px rgba(212, 98, 56, 0.3);
}

.portfolio-nav-arrow:active:not(:disabled),
.portfolio-nav-btn:active:not(:disabled) {
  transform: translateY(-50%) scale(0.95);
}

.portfolio-nav-arrow:disabled,
.portfolio-nav-btn:disabled {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-50%) scale(0.85);
}

html.light .portfolio-nav-arrow,
html.light .portfolio-nav-btn {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: #cbd5e1;
  color: #0f172a;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
}

html.light .portfolio-nav-arrow:hover:not(:disabled),
html.light .portfolio-nav-btn:hover:not(:disabled) {
  background-color: #be4e27;
  border-color: #9e3c1c;
  color: #ffffff;
  box-shadow: 0 15px 30px -5px rgba(190, 78, 39, 0.35);
}

/* Slider Progress Bar */
.portfolio-progress-bar {
  height: 3px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
}

.portfolio-progress-fill {
  height: 100%;
  width: 20%;
  background: linear-gradient(to right, #be4e27, #f59e0b);
  border-radius: 9999px;
  transition: width 0.25s ease, transform 0.25s ease;
}

html.light .portfolio-progress-bar {
  background-color: #e2e8f0;
}

/* ==========================================================================
   TAMBAHAN KONTRAST LIGHT MODE (TEMA TERANG) MENYELURUH
   ========================================================================== */
html.light .glass-nav a:not([class*="bg-"]):not([class*="btn"]) {
  color: #1e293b !important;
}

html.light .glass-nav a:not([class*="bg-"]):not([class*="btn"]):hover {
  color: #be4e27 !important;
}

html.light .glass-nav #theme-toggle,
html.light .glass-nav #nav-admin-btn {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

html.light .glass-nav #theme-toggle:hover,
html.light .glass-nav #nav-admin-btn:hover {
  border-color: #d46238 !important;
  color: #be4e27 !important;
}

html.light .portfolio-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;
}

html.light .portfolio-card:hover {
  border-color: #d46238 !important;
  box-shadow: 0 12px 25px -4px rgba(212, 98, 56, 0.15) !important;
}

html.light .portfolio-card h3 {
  color: #0f172a !important;
}

html.light .portfolio-card p {
  color: #334155 !important;
}

html.light .portfolio-card button,
html.light .portfolio-card button * {
  background-color: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #9a3412 !important;
}

html.light .portfolio-card button:hover,
html.light .portfolio-card button:hover * {
  background-color: #d46238 !important;
  border-color: #d46238 !important;
  color: #ffffff !important;
}

html.light .client-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

html.light .client-tooltip {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 14px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06) !important;
}

html.light .client-tooltip .tooltip-arrow {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

html.light .client-tooltip h4 {
  color: #0f172a !important;
}

html.light .client-tooltip .bg-terracotta-500\/15 {
  background-color: #fff7ed !important;
  border-color: #fed7aa !important;
}

html.light .client-tooltip span.text-terracotta-300,
html.light .client-tooltip .category-ticker-track span {
  color: #9a3412 !important;
}

html.light #admin-dashboard-modal h3 {
  color: #0f172a !important;
}

html.light #admin-dashboard-tabs button {
  color: #475569 !important;
}

html.light #admin-dashboard-tabs button:hover {
  color: #0f172a !important;
}

html.light #admin-dashboard-tabs button[class*="border-terracotta"] {
  color: #be4e27 !important;
  background-color: #fff7ed !important;
}

html.light #tab-arrow-left,
html.light #tab-arrow-right {
  background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.95), transparent) !important;
  color: #334155 !important;
}

html.light #tab-arrow-right {
  background: linear-gradient(to left, #ffffff, rgba(255, 255, 255, 0.95), transparent) !important;
}



