/* SIPS — tampilan modern Bootstrap 5 */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --sips-primary: #2563eb;
  --sips-primary-dark: #1d4ed8;
  --sips-sidebar: linear-gradient(165deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
  --sips-surface: #ffffff;
  --sips-muted: #64748b;
  --sips-radius: 1rem;
  --sips-shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
  min-height: 100vh;
  color: #0f172a;
}

/* Navbar */
.app-navbar {
  background: var(--sips-surface) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.app-brand {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sips-primary) !important;
  font-size: 1.25rem;
}
.app-brand-badge {
  font-size: 0.65rem;
  vertical-align: super;
  opacity: 0.85;
}

/* Sidebar */
.app-sidebar {
  min-height: calc(100vh - 56px);
  background: var(--sips-sidebar);
  border-right: none !important;
  padding-top: 1rem;
  padding-bottom: 2rem;
}
.app-sidebar .nav-link {
  color: rgba(255, 255, 255, 0.78);
  border-radius: 0.65rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.15s ease, color 0.15s ease;
}
.app-sidebar .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.app-sidebar .nav-link.active {
  color: #fff;
  background: rgba(37, 99, 235, 0.45);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}
.app-sidebar .nav-section {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.75rem 0.85rem 0.35rem;
}

/* Sidebar — submenu bertipe grup (Bootstrap collapse) */
.sips-nav-tree .sips-nav-single {
  margin-bottom: 0.35rem;
}
.sips-nav-group {
  margin-bottom: 0.35rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.sips-nav-heading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.sips-nav-heading:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.06);
}
.sips-nav-heading .sips-nav-heading-inner {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  text-align: left;
}
.sips-nav-heading .sips-nav-chevron {
  font-size: 0.85rem;
  opacity: 0.65;
  transition: transform 0.2s ease;
}
.sips-nav-heading:not(.collapsed) .sips-nav-chevron {
  transform: rotate(180deg);
}
.sips-nav-tree .nav-link-sub {
  padding-left: 1.35rem !important;
  font-size: 0.92rem;
  border-radius: 0.5rem;
  margin: 0 0.35rem 0.2rem 0.35rem;
}
.sips-nav-tree .nav-link-sub i {
  opacity: 0.9;
}
.sips-nav-tree .collapse {
  padding-bottom: 0.35rem;
}

/* Main */
.app-main {
  padding-bottom: 3rem;
}

/* Page hero */
.page-hero {
  background: var(--sips-surface);
  border-radius: var(--sips-radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--sips-shadow);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.page-hero h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}
.page-hero p {
  margin: 0.25rem 0 0;
  color: var(--sips-muted);
  font-size: 0.9rem;
}

/* Cards */
.card-stat {
  border-radius: var(--sips-radius);
  box-shadow: var(--sips-shadow);
  background: var(--sips-surface);
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.card-stat .card-header {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  font-weight: 600;
  font-size: 0.95rem;
}

.stat-tile {
  border-radius: var(--sips-radius);
  border: 0;
  box-shadow: var(--sips-shadow);
  overflow: hidden;
  height: 100%;
}
.stat-tile .stat-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}
.stat-tile .stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat-tile .stat-label {
  font-size: 0.8rem;
  color: var(--sips-muted);
  font-weight: 500;
}

/* Tables */
.table-sips thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sips-muted);
  font-weight: 600;
  border-bottom-width: 1px;
  white-space: nowrap;
  background: #f8fafc;
}
.table-sips tbody tr {
  transition: background 0.12s ease;
}
.table-sips tbody tr:hover {
  background: rgba(37, 99, 235, 0.04);
}

.badge-poin {
  font-weight: 600;
  padding: 0.4em 0.65em;
  border-radius: 0.5rem;
}

/* Alerts */
.alert {
  border-radius: 0.75rem;
  border: 0;
}

/* Buttons */
.btn {
  font-weight: 600;
  border-radius: 0.65rem;
}
.btn-sm {
  border-radius: 0.5rem;
}

/* Import box */
.import-drop {
  border: 2px dashed #cbd5e1;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #f8fafc;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.import-drop:hover {
  border-color: var(--sips-primary);
  background: rgba(37, 99, 235, 0.04);
}

/* Login page (auth) */
.auth-shell {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
}
.auth-card {
  border-radius: 1.25rem;
  border: 0;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.35);
}

/* Responsive mobile tweaks */
@media (max-width: 576px) {
  .page-hero {
    padding: 0.9rem 1rem !important;
  }
  .card-body {
    padding: 0.85rem !important;
  }
  .table-sips thead th,
  .table-sips tbody td {
    font-size: 0.88rem;
  }
  .table-sips thead th {
    letter-spacing: 0.02em;
  }
  .btn {
    padding: 0.55rem 0.75rem;
    border-radius: 0.6rem;
  }
}

@media print {
  .navbar,
  .app-sidebar,
  .offcanvas,
  .no-print {
    display: none !important;
  }
  .print-header {
    display: block !important;
  }
  body {
    background: #fff !important;
  }
  .app-main {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0.5rem !important;
  }
}
