:root {
  --neon: #00f0ff;
  --purple: #a855f7;
  --bg: #0a0a0f;
  --card: #12121a;
  --border: #1e1e2e;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  background-image: 
    radial-gradient(ellipse at top, rgba(0, 240, 255, 0.05) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0f0f18 0%, #0a0a0f 100%);
  border-right: 1px solid var(--border);
  transition: transform 0.3s ease;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  color: #9ca3af;
  transition: all 0.2s;
  text-decoration: none;
}

.sidebar-link:hover, .sidebar-link.active {
  background: rgba(0, 240, 255, 0.1);
  color: var(--neon);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.sidebar-link i {
  width: 20px;
  text-align: center;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s;
}

.card:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.05);
}

.stat-card {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
  border: 1px solid rgba(0, 240, 255, 0.15);
}

/* Buttons */
.btn-neon {
  background: linear-gradient(135deg, #00f0ff 0%, #00c4d4 100%);
  color: #000;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-neon:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.5);
}

.btn-purple {
  background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-purple:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--neon);
  color: var(--neon);
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* Form */
.form-input {
  width: 100%;
  background: #0f0f18;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: #fff;
  outline: none;
  transition: border 0.2s;
}

.form-input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

.form-label {
  display: block;
  margin-bottom: 6px;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Table */
.table-container {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 12px 16px;
  color: #9ca3af;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

tr:hover td {
  background: rgba(0, 240, 255, 0.03);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-pending {
  background: rgba(234, 179, 8, 0.15);
  color: #fbbf24;
}

.badge-success {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.badge-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.badge-info {
  background: rgba(0, 240, 255, 0.15);
  color: var(--neon);
}

/* Mobile */
.mobile-toggle {
  display: none;
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 50;
    transform: translateX(-100%);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .mobile-toggle {
    display: block;
  }
  .main-content {
    margin-left: 0 !important;
  }
}

/* Loading spinner */
.spinner {
  border: 3px solid rgba(0, 240, 255, 0.2);
  border-top-color: var(--neon);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Glow text */
.glow {
  text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a0f;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon);
}

/* Disable zoom / pinch */
html, body {
  touch-action: manipulation;
  -ms-touch-action: manipulation;
}



/* Button press ripple-ish */
.btn-neon:active, .btn-purple:active, .btn-success:active, .btn-danger:active, .btn-outline:active {
  transform: scale(0.96);
}

.card-surface {
  background: var(--card, #12121a);
  border: 1px solid var(--border, #1e1e2e);
  border-radius: 1rem;
}

/* Sidebar disabled — navigasi di dashboard */
.sidebar { display: none !important; }
.main-content { margin-left: 0 !important; }

.sidebar, aside#sidebar, #sidebar { display: none !important; width: 0 !important; }
.main-content { margin-left: 0 !important; width: 100% !important; }

