/**
 * ============================================================
 * Nama Aplikasi : WA Gantara SaaS
 * File          : api-theme.css
 * Deskripsi     : Desain identik 100% dengan UI Engine API WA Gantara.
 * Author        : Habib Ismail Al Qadri
 * Email         : ahlanhabibana@gmail.com
 * Dibuat        : Tue 27 Oktober 2026
 * ============================================================
 */

:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --secondary: #0f172a;
  --secondary-light: #1e293b;
  --accent: #06b6d4;
  --bg-base: #0f172a;
  --bg-surface: #1e293b;
  --bg-surface-alt: #334155;
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #475569;
  --border-light: rgba(71, 85, 105, 0.4);
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  --radius: 14px;
}

body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  min-height: 100vh;
}

/* Identical Sidebar */
.api-sidebar {
  width: 270px;
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  border-right: 1px solid rgba(16, 185, 129, 0.2);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.api-brand-text {
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

/* Nav Item Identical with Active Left Stripe */
.api-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin: 4px 10px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}

.api-nav-item:hover {
  background: rgba(16, 185, 129, 0.1);
  color: var(--primary);
}

.api-nav-item.active {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2) 0%, transparent 100%);
  color: var(--primary);
  font-weight: 700;
}

.api-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3.5px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}

/* Header & Cards Identical */
.api-header-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.api-stat-card {
  background: rgba(30, 41, 59, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 16px;
  padding: 22px;
  transition: all 0.25s ease;
}

.api-stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.api-btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  color: white;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.2s ease;
}

.api-btn-primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

.api-btn-secondary {
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid rgba(71, 85, 105, 0.4);
  color: var(--text-primary);
  font-weight: 600;
  transition: all 0.2s ease;
}

.api-btn-secondary:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.5);
  color: var(--primary);
}

/* Inputs */
.api-input {
  background: rgba(51, 65, 85, 0.5);
  border: 1px solid rgba(71, 85, 105, 0.5);
  border-radius: 10px;
  color: var(--text-primary);
  transition: all 0.2s;
}

.api-input:focus {
  outline: none;
  background: rgba(51, 65, 85, 0.8);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}
