/* Theme Colors - Nuansa Nahdlatul Ulama & User Preferences */
:root {
  --sidebar-bg: #056856;
  --sidebar-text: #82B3AA;
  --sidebar-heading: #FFFFFF;
  --nu-green-dark: #056856;
  --nu-green-primary: #006633;
  --nu-green-light: #0d8747;
  --nu-green-subtle: #e8f5ec;
  --nu-gold: #c59b27;
  --nu-gold-light: #fef9e7;
  --nu-gold-hover: #b0871d;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-slate: #f8fafc;
}

/* Global Font: Poppins */
body, html {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: #f1f5f9;
  -webkit-font-smoothing: antialiased;
}

/* SIDEBAR STYLING - EXACT SPECIFICATION */
#sidebar {
  background-color: #056856 !important;
  font-family: 'Poppins', sans-serif !important;
}

/* Warna tulisan MENU --> #FFFFFF, MENU Semibold (600) */
.sidebar-heading {
  color: rgba(255, 255, 255, 0.72) !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 600 !important;
  font-size: 11px !important;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* Warna teks menu dan ikon --> #82B3AA, Semibold (600) */
.nav-item {
  color: #9ec8c0 !important;
  font-family: 'Poppins', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 11px !important;
  padding: 9px 12px !important;
  border-radius: 10px !important;
  transition: all 0.2s ease-in-out !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

/* Icon Outline / Line styling */
.nav-item i, .nav-item .ti {
  color: #9ec8c0 !important;
  font-size: 18px !important;
  width: 20px;
  flex-shrink: 0;
  text-align: center;
  transition: all 0.2s ease-in-out !important;
}

/* Hover state */
.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #FFFFFF !important;
}
.nav-item:hover i, .nav-item:hover .ti {
  color: #FFFFFF !important;
}

/* Active state */
.nav-item.active {
  background-color: rgba(255, 255, 255, 0.18) !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}
.nav-item.active i, .nav-item.active .ti {
  color: #FFFFFF !important;
}

/* Subtle Card & Modal Animations */
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.97) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.animate-fadeIn {
  animation: fadeInModal 0.18s ease-out forwards;
}

/* Table row vertical centering & clean borders */
table th, table td {
  vertical-align: middle;
}

/* SIDEBAR COLLAPSED (ICON ONLY / MINI MODE) */
#sidebar.collapsed {
  width: 74px !important;
  min-width: 74px !important;
}

#sidebar.collapsed .sidebar-brand-header {
  justify-content: center !important;
  padding: 16px 8px !important;
}

#sidebar.collapsed .sidebar-brand-text {
  display: none !important;
}

#sidebar.collapsed .sidebar-heading {
  display: none !important;
}

#sidebar.collapsed .nav-item {
  justify-content: center !important;
  padding: 12px 0 !important;
  gap: 0 !important;
}

#sidebar.collapsed .nav-item span {
  display: none !important;
}

#sidebar.collapsed .nav-item i,
#sidebar.collapsed .nav-item .ti {
  font-size: 24px !important;
  width: auto !important;
  margin: 0 !important;
}

#sidebar.collapsed .sidebar-footer {
  display: none !important;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.custom-sidebar-scroll::-webkit-scrollbar {
  width: 4px;
}
.custom-sidebar-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.custom-sidebar-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* Badge Styles */
.badge-pcnu { background-color: #056856; color: #ffffff; }
.badge-lembaga { background-color: #0369a1; color: #ffffff; }
.badge-banom { background-color: #7c2d12; color: #ffffff; }
.badge-mwc { background-color: #15803d; color: #ffffff; }
.badge-ranting { background-color: #475569; color: #ffffff; }

/* Calendar styling */
.calendar-day-header {
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: #64748b;
  padding: 8px 4px;
  text-align: center;
}

.calendar-cell {
  min-height: 95px;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  transition: background-color 0.15s ease;
}
.calendar-cell:hover {
  background-color: #f8fafc;
}
.calendar-cell.other-month {
  background-color: #f8fafc;
  opacity: 0.55;
}
.calendar-cell.today {
  background-color: #f0fdf4;
  border-color: #86efac;
}

/* Print Styles */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }
  .no-print, aside, header {
    display: none !important;
  }
  main {
    padding: 0 !important;
    margin: 0 !important;
  }
  .card, .table-container {
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
  }
}
