﻿:root {
  --ink: #0B0B0B;          /* Deep Black */
  --charcoal: #2C2C2C;     /* Charcoal */
  --gold: #DFAF37;         /* Gold */
  --gold-hover: #C59A2F;   /* Darker Gold for hover */
  --soft-white: #F5F5F5;   /* Soft White */
  --muted: #888888;
  --line: rgba(44, 44, 44, 0.15);
  --surface: #FFFFFF;
  --shadow: 0 24px 70px rgba(11, 11, 11, 0.08);
}

* { letter-spacing: 0; }

body {
  /* font-family: "Helvetica Neue", Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; */
  font-family: 'Space Grotesk', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background-color: var(--soft-white);
  color: var(--ink);
}

.app-shell,
.login-shell {
  min-height: 100vh;
  background-color: var(--soft-white);
}

.login-shell { background-attachment: fixed; }

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 11, 11, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 11, 11, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, black 45%, transparent 100%);
}

.sidebar-surface {
  border-right: 1px solid var(--line);
  background-image: url('/assets/bg.webp');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: var(--ink); /* Fallback */
  color: var(--soft-white);
  transition: transform 300ms ease, width 300ms ease;
  overflow-x: hidden;
  z-index: 40; 
}

.sidebar-surface::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 11, 0.35); /* Lebih terang, opacity dikurangi menjadi 35% */
  z-index: -1;
  pointer-events: none;
}

/* Alpine JS Sidebar transition classes */
.sidebar-expanded { width: 18rem; } /* 72 */
.sidebar-collapsed { width: 5rem; } /* 20 */
.main-expanded { margin-left: 18rem; }
.main-collapsed { margin-left: 5rem; }

.brand-mark {
  
  width: 40px;
  min-width: 40px;
  height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(223, 175, 55, 0.2);
}

.nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 10px;
  padding: 0 14px;
  margin-bottom: 4px;
  transition: background 200ms ease, color 200ms ease;
  white-space: nowrap;
}

.nav-link-active {
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(223, 175, 55, 0.3);
}

.nav-link-idle {
  color: #A0A0A0;
}

.nav-link-idle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--soft-white);
}

.nav-icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-right: 14px;
}

.login-card,
.panel,
.metric-card,
.table-card {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.login-card {
  border-radius: 20px;
  padding: 40px;
}

.panel,
.table-card { border-radius: 16px; }
.metric-card { border-radius: 16px; padding: 24px; }

.glass-metric {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(11, 11, 11, 0.05);
}

.glass-metric span {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
}

.glass-metric p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--charcoal);
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}

.field-input,
.select-input,
.textarea-input {
  
  width: 100%;
  border: 1px solid rgba(44, 44, 44, 0.2);
  border-radius: 10px;
  background: #FAFAFA;
  padding: 0 14px; min-height: 42px;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border 200ms ease, box-shadow 200ms ease;
}

.textarea-input { min-height: 100px; padding-top: 10px; padding-bottom: 10px; }

.field-input:focus,
.select-input:focus,
.textarea-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(223, 175, 55, 0.15);
  background: var(--surface);
}

.btn-primary,
.btn-secondary,
.btn-soft,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 10px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all 200ms ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--gold);
  border: 1px solid var(--ink);
}

.btn-primary:hover { 
  background: var(--charcoal);
  border-color: var(--charcoal);
  box-shadow: 0 10px 20px rgba(11, 11, 11, 0.15);
}

.btn-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--charcoal);
  background: #FAFAFA;
}

.btn-soft {
  background: rgba(223, 175, 55, 0.15);
  color: #A37E22;
  border: 1px solid transparent;
}

.btn-soft:hover {
  background: rgba(223, 175, 55, 0.25);
}

.btn-link {
  min-height: 32px;
  padding: 0 12px;
  background: transparent;
  color: var(--charcoal);
}
.btn-link:hover {
  color: var(--ink);
  background: rgba(11,11,11, 0.05);
}

.icon-button {
  
  width: 36px;
  height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: transparent;
  color: var(--charcoal);
  transition: all 200ms ease;
}
.icon-button:hover {
  background: rgba(11, 11, 11, 0.05);
  color: var(--ink);
}

.modern-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.modern-table th {
  background: #FAFAFA;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 600;
  padding: 16px;
  text-align: left;
  border-bottom: 2px solid var(--line);
}

.modern-table td {
  border-bottom: 1px solid rgba(44, 44, 44, 0.1);
  padding: 16px;
  vertical-align: middle;
  color: var(--ink);
}

.modern-table tbody tr:hover td { background: #FAFAFA; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pill-green { background: rgba(223, 175, 55, 0.15); color: #A37E22; border: 1px solid rgba(223, 175, 55, 0.3); } /* Repurposed to Gold style */
.pill-slate { background: #FAFAFA; color: var(--charcoal); border: 1px solid var(--line); }
.pill-red { background: rgba(11, 11, 11, 0.05); color: var(--ink); border: 1px solid rgba(11,11,11,0.2); }

.document-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  border-radius: 8px;
  background: var(--charcoal);
  color: var(--gold);
  font-weight: 600;
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  
  display: flex; align-items: center; justify-content: center;
  background: rgba(11, 11, 11, 0.5);
  padding: 18px;
  backdrop-filter: blur(4px);
}

.modal-panel {
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 25px 80px rgba(11, 11, 11, 0.3);
}

.document-row {
  
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FAFAFA;
  padding: 16px;
}

@media (min-width: 680px) {
  .document-row {  align-items: center; }
}

.hidden { display: none !important; }

@media print {
  aside, header, form, .no-print { display: none !important; }
  main { padding-left: 0 !important; }
  body { background: #fff !important; }
}

.document-accordion {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 8px;
}

.document-accordion summary { display: flex; justify-content: space-between;
  
  
  gap: 16px;
  align-items: center;
  cursor: pointer;
  padding: 16px;
  list-style: none;
  background: #FAFAFA;
}

.document-accordion summary::-webkit-details-marker { display: none; }
.document-accordion summary h3 { font-weight: 600; color: var(--ink); }
.document-accordion summary p { margin-top: 4px; font-size: 12px; color: var(--charcoal); }
.summary-actions { display: flex; gap: 8px; align-items: center; }
.version-list { border-top: 1px solid var(--line); padding: 10px; }
.version-row {
  
  gap: 12px;
  border-radius: 8px;
  padding: 12px;
}
.version-row + .version-row { border-top: 1px solid rgba(44, 44, 44, 0.05); }




/* Mobile Responsive Table Wrapper */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}



/* Futuristic Luxury Elements */
.panel, .table-card, .metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}

/* Subtle glow effect on top edge of cards */
.panel::before, .table-card::before, .metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(223, 175, 55, 0.3), transparent);
  z-index: 10;
}

/* Enhancing inputs */
.field-input, .select-input, .textarea-input {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(44, 44, 44, 0.15);
  backdrop-filter: blur(8px);
  transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.field-input:focus, .select-input:focus, .textarea-input:focus {
  background: #FFFFFF;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(223, 175, 55, 0.1), 0 4px 12px rgba(223, 175, 55, 0.05);
  transform: translateY(-1px);
}

/* Futuristic Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--ink), #1A1A1A);
  color: var(--gold);
  border: 1px solid rgba(223, 175, 55, 0.3);
  box-shadow: 0 4px 15px rgba(11, 11, 11, 0.2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(223, 175, 55, 0.1), transparent);
  opacity: 0;
  transition: opacity 300ms ease;
  z-index: -1;
}

.btn-primary:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 25px rgba(223, 175, 55, 0.25);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  opacity: 1;
}

/* Modern Table Enhancements */
.modern-table th {
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(223, 175, 55, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
}

.modern-table tbody tr {
  transition: all 200ms ease;
}

.modern-table tbody tr:hover td {
  background: rgba(223, 175, 55, 0.02);
}

.modern-table td {
  border-bottom: 1px solid rgba(44, 44, 44, 0.06);
}

/* Fancy Badges/Pills */
.pill {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 10px;
  padding: 4px 12px;
}

.pill-green {
  background: linear-gradient(135deg, rgba(223, 175, 55, 0.1), rgba(223, 175, 55, 0.05));
  color: #B58500;
  border: 1px solid rgba(223, 175, 55, 0.4);
  box-shadow: 0 2px 10px rgba(223, 175, 55, 0.1);
}

.pill-slate {
  background: linear-gradient(135deg, rgba(250, 250, 250, 1), rgba(240, 240, 240, 1));
  border: 1px solid rgba(44, 44, 44, 0.15);
}

/* Floating Actions */
.summary-actions .btn-primary {
  min-height: 32px;
  padding: 0 14px;
  font-size: 12px;
}

/* Card Titles */
.table-card h2, .panel h2 {
  font-weight: 700;
  letter-spacing: -0.02em;
}






/* Sidebar Group Headers & Accordions */
.nav-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 14px;
  margin-top: 16px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #f5f5f5;
  cursor: pointer;
  transition: color 200ms ease;
  user-select: none;
}
.nav-group-header:hover {
  color: var(--soft-white);
}

.nav-submenu {
  display: flex;
  flex-direction: column;
  margin-left: 20px;
  padding-left: 14px;
  padding-right: 14px;
  border-left: 1px solid rgba(255,255,255,0.1);
  overflow: hidden;
  transition: max-height 300ms ease-in-out;
}

.nav-sublink {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  margin-top: 4px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: all 200ms ease;
  color: #c4c4c4;
}
.nav-sublink.nav-link-active {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(223, 175, 55, 0.3);
}
.nav-sublink:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft-white);
}
.nav-sublink-active {
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(223, 175, 55, 0.3);
}
/* Caret Icon Transition */
.caret-icon {
  width: 14px;
  height: 14px;
  transition: transform 200ms ease;
}
.caret-rotated {
  transform: rotate(180deg);
}

/* Collapsed Sidebar Adjustments */
.sidebar-collapsed .nav-group-header {
  justify-content: center;
}
.sidebar-collapsed .nav-group-title,
.sidebar-collapsed .caret-icon,
.sidebar-collapsed .nav-submenu {
  display: none !important;
}









/* Hapus gambar background saat sidebar mode minimize */
.sidebar-collapsed.sidebar-surface {
  background-image: none !important;
}
.sidebar-collapsed.sidebar-surface::before {
  display: none !important;
}


