/* ============================================================
   NPC Exam Prep — Global Styles
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #0d6efd;
  --primary-dark: #0b5ed7;
  --success: #198754;
  --danger: #dc3545;
  --warning: #ffc107;
  --dark: #212529;
  --gray: #6c757d;
  --light: #f8f9fa;
  --border: #dee2e6;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.navbar-brand { font-size: 1.25rem; font-weight: 700; color: var(--primary); text-decoration: none; }
.navbar-links { display: flex; gap: 1rem; align-items: center; }

/* Container */
.container { max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; }
.container-narrow { max-width: 480px; }

/* Cards */
.card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

/* Forms */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13,110,253,0.1);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}
.btn:hover { background: var(--primary-dark); }
.btn-block { display: block; width: 100%; }
.btn-success { background: var(--success); }
.btn-danger { background: var(--danger); }
.btn-outline { background: white; color: var(--primary); border: 1px solid var(--primary); }
.btn-whatsapp { background: #25D366; font-size: 1.05rem; padding: 1rem 2rem; }

/* Alerts */
.alert {
  padding: 0.9rem 1.2rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.alert-error { background: #f8d7da; color: #842029; }
.alert-success { background: #d1e7dd; color: #0f5132; }
.alert-info { background: #cfe2ff; color: #084298; }

/* Badges */
.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge.free { background: #e2e3e5; color: #41464b; }
.badge.paid { background: #d1e7dd; color: #0f5132; }
.badge.pending { background: #fff3cd; color: #664d03; }
.badge.verified { background: #d1e7dd; color: #0f5132; }
.badge.rejected { background: #f8d7da; color: #842029; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: white; }
table th, table td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border); }
table th { background: var(--light); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; color: var(--gray); }

/* Hero */
.hero { text-align: center; padding: 3rem 1rem; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.15rem; color: var(--gray); margin-bottom: 2rem; }

/* Plan cards */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.plan-card { background: white; padding: 2rem; border-radius: 10px; border: 2px solid var(--border); }
.plan-card.featured { border-color: var(--primary); }
.plan-price { font-size: 2.5rem; font-weight: 700; color: var(--primary); margin: 0.5rem 0; }
.plan-features { list-style: none; margin: 1rem 0; }
.plan-features li { padding: 0.4rem 0; }

/* Exam */
.question-box { background: white; padding: 2rem; border-radius: 10px; margin-bottom: 1.5rem; }
.option {
  display: block;
  padding: 1rem;
  margin: 0.5rem 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
}
.option:hover { border-color: var(--primary); background: #f0f7ff; }
.option.selected { border-color: var(--primary); background: #e7f1ff; }
.option input { margin-right: 0.75rem; }

/* Payment */
.payment-container { max-width: 600px; margin: 2rem auto; padding: 0 1rem; }
.qr-container { text-align: center; padding: 1.5rem; background: white; border-radius: 10px; margin: 1rem 0; }
.qr-code { max-width: 280px; width: 100%; border: 1px solid var(--border); border-radius: 8px; }
.esewa-id { text-align: center; margin: 1rem 0; font-size: 1.05rem; }

/* Admin */
.tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; border-bottom: 2px solid var(--border); }
.tab {
  padding: 0.75rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--gray);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }