/* Admin CSS — ConfAcadGlobal */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --navy: #0a2342;
  --emerald: #0b7d6e;
  --emerald-lt: #0e9e8c;
  --gold: #f5a623;
  --bg: #f1f5f9;
  --white: #fff;
  --border: #e2e8f0;
  --text: #1e2d3d;
  --muted: #64748b;
  --radius: 10px;
  --shadow: 0 2px 8px rgba(10,35,66,.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.6; }
a { color: var(--emerald); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Sidebar */
.admin-sidebar { width: 230px; background: var(--navy); position: fixed; inset: 0 auto 0 0; overflow-y: auto; display: flex; flex-direction: column; z-index: 10; }
.sidebar-brand { padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand strong { color: white; font-size: 15px; font-weight: 700; display: block; }
.sidebar-brand small { color: rgba(255,255,255,.45); font-size: 11px; }
.sidebar-nav { padding: 12px 0; flex: 1; }
.sidebar-nav a { display: flex; align-items: center; gap: 8px; padding: 9px 18px; color: rgba(255,255,255,.65); font-size: 13px; font-weight: 500; transition: all .2s; }
.sidebar-nav a:hover, .sidebar-nav a.active { color: white; background: rgba(255,255,255,.1); text-decoration: none; }
.sidebar-nav a.active { border-left: 3px solid var(--emerald); }
.sidebar-nav .nav-section { padding: 16px 18px 6px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.3); }
.sidebar-bottom { padding: 16px 18px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-bottom a { color: rgba(255,255,255,.45); font-size: 12px; display: block; }
.sidebar-bottom a:hover { color: white; }

/* Main */
.admin-main { margin-left: 230px; flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar { background: white; border-bottom: 1px solid var(--border); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; }
.admin-topbar h1 { font-size: 18px; font-weight: 700; color: var(--navy); }
.admin-content { padding: 28px; flex: 1; }

/* Cards */
.card { background: white; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-header { padding: 18px 22px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-header h2 { font-size: 16px; font-weight: 700; color: var(--navy); }
.card-body { padding: 22px; }

/* Table */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th { text-align: left; padding: 10px 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); border-bottom: 2px solid var(--border); }
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fafc; }

/* Forms */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 18px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: .06em; }
.form-group input, .form-group textarea, .form-group select {
  font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text);
  border: 1.5px solid var(--border); border-radius: 6px; padding: 10px 12px;
  transition: border-color .2s, box-shadow .2s; width: 100%; background: white; outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(11,125,110,.1);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-hint { font-size: 11px; color: var(--muted); margin-top: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 7px; cursor: pointer; border: none; transition: all .2s; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--emerald); color: white; }
.btn-primary:hover { background: var(--emerald-lt); color: white; text-decoration: none; }
.btn-secondary { background: var(--bg); color: var(--navy); border: 1px solid var(--border); }
.btn-secondary:hover { background: #e8edf3; text-decoration: none; }
.btn-danger { background: #fee2e2; color: #991b1b; }
.btn-danger:hover { background: #fecaca; text-decoration: none; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-gold { background: var(--gold); color: #7a4a00; }
.btn-gold:hover { background: #fdb94b; text-decoration: none; }

/* Alerts */
.alert { padding: 12px 16px; border-radius: 7px; font-size: 13px; font-weight: 500; margin-bottom: 18px; }
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

/* Badges */
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 100px; }
.badge-green { background: #dcfce7; color: #166534; }
.badge-gray  { background: #f1f5f9; color: #64748b; }
.badge-gold  { background: #fef3c7; color: #92400e; }

/* Dashboard stats */
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 28px; }
.dash-card { background: white; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; align-items: center; gap: 16px; }
.dash-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.dash-icon-blue { background: #eff6ff; }
.dash-icon-green { background: #ecfdf5; }
.dash-icon-gold { background: #fef3c7; }
.dash-icon-purple { background: #f5f3ff; }
.dash-num { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1; }
.dash-lbl { font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 3px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab { padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all .2s; }
.tab.active, .tab:hover { color: var(--emerald); border-color: var(--emerald); }

@media (max-width: 860px) {
  .admin-sidebar { width: 200px; }
  .admin-main { margin-left: 200px; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}
