/* ============================================
   Admin Panel Styles
   ============================================ */

:root {
  --primary: #6C63FF;
  --primary-dark: #5A52D5;
  --bg: #0F1117;
  --bg-card: #1A1D27;
  --bg-input: #242733;
  --border: #2E3140;
  --text: #E4E4E7;
  --text-muted: #9CA3AF;
  --accent: #25D366;
  --danger: #EF4444;
  --warning: #F59E0B;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ---------- Login ---------- */
.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
  max-width: 380px;
  width: 100%;
}

.login-card h1 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.login-card > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2rem; }

.login-card input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 2px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}

.login-card input:focus { border-color: var(--primary); }

.login-error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

.btn-forgot {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
  margin-top: 0.75rem;
  transition: color 0.2s;
}
.btn-forgot:hover { color: #8B83FF; text-decoration: underline; }

/* ---------- Buttons ---------- */
.btn-admin {
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  background: var(--primary);
  color: #fff;
  transition: all 0.2s;
}

.btn-admin:hover { background: var(--primary-dark); transform: translateY(-1px); }

.btn-save { background: var(--accent); color: #fff; margin-top: 1.5rem; }
.btn-save:hover { background: #1fb855; }

.btn-add {
  background: transparent;
  border: 2px dashed var(--border);
  color: var(--text-muted);
  width: 100%;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 12px;
}
.btn-add:hover { border-color: var(--primary); color: var(--primary); }

.btn-logout { background: transparent; border: 1px solid var(--border); color: var(--text-muted); }
.btn-logout:hover { border-color: var(--danger); color: var(--danger); }

.btn-remove {
  background: transparent;
  border: 1px solid var(--danger);
  color: var(--danger);
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-remove:hover { background: var(--danger); color: #fff; }

/* ---------- Header ---------- */
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.admin-header h1 { font-size: 1.15rem; font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: 1rem; }

.save-status {
  font-size: 0.85rem;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s;
}
.save-status.show { opacity: 1; }

/* ---------- Tabs ---------- */
.admin-tabs {
  display: flex;
  gap: 0;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  padding: 0 1rem;
}

.tab {
  padding: 1rem 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* ---------- Content ---------- */
.admin-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.tab-content h2 { font-size: 1.5rem; margin-bottom: 0.25rem; }
.tab-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* ---------- Form Fields ---------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: 0.75rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary);
}

.form-field textarea { resize: vertical; min-height: 80px; }

/* ---------- Cards (Testimonials, FAQ, Services) ---------- */
.editor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.editor-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.editor-card-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* ---------- Leads Table ---------- */
.leads-table-wrap { overflow-x: auto; }

.leads-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.leads-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border);
}

.leads-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

.leads-table tr:hover td { background: rgba(108, 99, 255, 0.05); }

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(37, 211, 102, 0.15);
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .admin-header { padding: 1rem; }
  .admin-header h1 { font-size: 1rem; }
  .admin-content { padding: 1.5rem 1rem; }
  .tab { padding: 0.85rem 1rem; font-size: 0.8rem; }
}
