/* Dilarang keras menghapus credits 
Devoleper : Rahmad Tenpoles
WhatsApp : wa.me/6285764735713
Instagram : instagram.com/rahmad_tenpoles
Telegram : t.me/rahmad_tenpoles
Dilarang keras menghapus credits */



:root {
  --primary: #848484;
  --sidebar-width: 240px;
}


body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Netral zinc — selaras dengan design token di themes.css */
body.dark-theme {
  background-color: #09090b;
  color: #fafafa;
}

body.dark-theme .card {
  background-color: #18181b;
  border: 1px solid #27272a;
  border-radius: 12px;
  color: #fafafa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

body.dark-theme .card-header,
body.dark-theme .card-footer {
  background-color: #111113;
  border-color: #27272a;
}

body.dark-theme .table {
  color: #d4d4d8;
  border-color: #27272a;
}

body.dark-theme .table th {
  background-color: #18181b;
  color: #a1a1aa;
  border-color: #27272a;
}

body.dark-theme .table td {
  border-color: #27272a;
}

body.dark-theme .form-control,
body.dark-theme .form-select {
  background-color: #18181b;
  border-color: #3f3f46;
  color: #fafafa;
}

body.dark-theme .form-control:focus,
body.dark-theme .form-select:focus {
  background-color: #18181b;
  border-color: #a1a1aa;
  color: #fafafa;
  box-shadow: 0 0 0 3px rgba(250, 250, 250, 0.12);
}

body.dark-theme .form-control::placeholder { color: #71717a; }
body.dark-theme .text-muted { color: #a1a1aa !important; }
body.dark-theme .border { border-color: #27272a !important; }
body.dark-theme .bg-white { background-color: #18181b !important; }
body.dark-theme .modal-content { background-color: #18181b; border-color: #27272a; border-radius: 16px; }
body.dark-theme .modal-header { border-color: #27272a; }
body.dark-theme .modal-footer { border-color: #27272a; }
body.dark-theme .dropdown-menu {
  background-color: #18181b;
  border-color: #27272a;
}
body.dark-theme .dropdown-item { color: #fafafa; }
body.dark-theme .dropdown-item:hover { background-color: #27272a; }
body.dark-theme .alert-info { background-color: #18181b; border-color: #3f3f46; color: #e4e4e7; }
body.dark-theme .alert-success { background-color: rgba(34, 197, 94, 0.12); border-color: rgba(34, 197, 94, 0.28); color: #4ade80; }
body.dark-theme .alert-danger { background-color: rgba(239, 68, 68, 0.12); border-color: rgba(239, 68, 68, 0.28); color: #f87171; }
body.dark-theme .alert-warning { background-color: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.28); color: #fbbf24; }


body.light-theme {
  background-color: #fafafa;
  color: #09090b;
}

body.light-theme .card {
  background-color: #ffffff;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.04);
}

body.light-theme .table { color: #09090b; }
body.light-theme .sidebar { background-color: #18181b !important; }
body.light-theme .text-muted { color: #71717a !important; }


.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s ease;
  background-color: #09090b;
}

.sidebar .nav-link {
  border-radius: 8px;
  margin-bottom: 2px;
  transition: background-color 0.15s ease;
}

.sidebar .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
}


.main-content {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  padding-bottom: 60px;
}


@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
}


.btn-primary {
  background-color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 8px;
  font-weight: 600;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #6e6e6e;
  border-color: #6e6e6e;
}
body.dark-theme .btn-primary {
  background-color: #fafafa;
  border-color: #fafafa;
  color: #18181b;
}
body.dark-theme .btn-primary:hover,
body.dark-theme .btn-primary:focus {
  background-color: #d4d4d8;
  border-color: #d4d4d8;
  color: #18181b;
}

#themeToggle {
  transition: all 0.2s;
}

#themeToggle:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
}


.badge-pending { background-color: #d97706; }
.badge-success { background-color: #16a34a; }
.badge-failed  { background-color: #dc2626; }
.badge-cancelled { background-color: #71717a; }
