
:root {
  --admin-primary: #064e3b;
  --admin-accent: #d97706;
  --admin-bg: #f8fafc;
  --admin-card: #ffffff;
  --admin-border: #e2e8f0;
  --admin-text: #0f172a;
  --admin-sidebar: #022017;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; background: var(--admin-bg); color: var(--admin-text); line-height: 1.5; }

.admin-layout { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar { width: 260px; background: var(--admin-sidebar); color: #e2e8f0; padding: 24px 0; display: flex; flex-direction: column; flex-shrink: 0; }
.admin-brand { padding: 0 24px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 1.25rem; font-weight: 800; color: #ffffff; display: flex; align-items: center; gap: 10px; }
.admin-nav { list-style: none; padding: 20px 0; flex: 1; }
.admin-nav-item { padding: 12px 24px; display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 0.94rem; cursor: pointer; transition: all 0.2s; color: #cbd5e1; }
.admin-nav-item:hover, .admin-nav-item.active { background: rgba(255,255,255,0.08); color: #fef08a; border-left: 4px solid var(--admin-accent); }
.admin-user-profile { padding: 18px 24px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: space-between; }

/* Content Area */
.admin-main { flex: 1; display: flex; flex-direction: column; overflow-x: hidden; }
.admin-topbar { height: 70px; background: #ffffff; border-bottom: 1px solid var(--admin-border); display: flex; align-items: center; justify-content: space-between; padding: 0 32px; }
.admin-body { padding: 32px; flex: 1; }

/* Tab Panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.3s ease; }

/* Cards & Grid */
.stat-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 30px; }
.stat-card { background: #ffffff; border: 1px solid var(--admin-border); border-radius: 12px; padding: 22px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.stat-val { font-size: 2.2rem; font-weight: 800; color: var(--admin-primary); margin: 6px 0; }
.stat-lbl { font-size: 0.88rem; color: #64748b; font-weight: 600; }

.admin-card { background: #ffffff; border: 1px solid var(--admin-border); border-radius: 12px; padding: 28px; margin-bottom: 30px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.admin-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.admin-card-title { font-size: 1.35rem; font-weight: 700; color: var(--admin-primary); }

/* Buttons */
.btn-admin-primary { background: var(--admin-primary); color: #ffffff; border: none; padding: 10px 18px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 8px; }
.btn-admin-primary:hover { background: #043927; }
.btn-admin-accent { background: var(--admin-accent); color: #ffffff; border: none; padding: 10px 18px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 0.92rem; }
.btn-admin-accent:hover { background: #b45309; }
.btn-admin-outline { background: transparent; border: 1px solid var(--admin-border); padding: 8px 14px; border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.86rem; color: var(--admin-text); }
.btn-admin-outline:hover { background: #f1f5f9; }

/* Tables */
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th, .admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--admin-border); font-size: 0.92rem; }
.admin-table th { background: #f8fafc; font-weight: 700; color: #475569; }
.admin-table tr:hover { background: #f8fafc; }

.badge-status { padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; display: inline-block; }
.status-new { background: #dbeafe; color: #1e40af; }
.status-contacted { background: #fef3c7; color: #92400e; }
.status-trial { background: #e0e7ff; color: #3730a3; }
.status-enrolled { background: #dcfce7; color: #166534; }

/* Forms & Inputs */
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.88rem; font-weight: 700; margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; padding: 10px 14px; border: 1.5px solid var(--admin-border); border-radius: 8px; font-family: inherit; font-size: 0.94rem; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--admin-primary); box-shadow: 0 0 0 3px rgba(6,78,59,0.1); }

/* Login Modal */
.admin-login-overlay { position: fixed; inset: 0; background: #022017; z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.admin-login-box { background: #ffffff; border-radius: 16px; padding: 40px; max-width: 440px; width: 100%; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); border-top: 5px solid var(--admin-accent); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
