/* ======================
   GLOBAL RESET & BASE
====================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

:root {
  --bg: #f8fafc;
  --text: #1f2933;
  --primary: #0f766e; /* Maldives teal */
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
}

body.dark {
  --bg: #0f172a;
  --text: #e5e7eb;
}

/* ======================
   NAVBAR
====================== */

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--primary);
  color: white;
}

.nav-left {
  display: flex;
  align-items: center;
  font-weight: bold;
}

.flag {
  width: 26px;
  margin-right: 8px;
}

.nav-right a {
  margin-right: 14px;
  color: white;
  text-decoration: none;
  font-size: 14px;
}

#darkToggle {
  border: none;
  background: transparent;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* ======================
   SECTIONS
====================== */

section {
  padding: 20px;
}

.cases-container,
.admin-container {
  max-width: 900px;
  margin: auto;
}

/* ======================
   HERO SECTION
====================== */

.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0f172a, #020617);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
}

.hero-content {
  max-width: 600px;
  color: white;
}

.hero-content h1 {
  font-size: 42px;
  margin-bottom: 14px;
}

.hero-content p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Hero Button */
.hero-btn {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 26px;
  background: #16a34a;
  color: white;
  text-decoration: none;
  font-weight: bold;
  border-radius: 999px;
}

.hero-btn:hover {
  opacity: 0.95;
}

/* ======================
   ABOUT SECTION
====================== */

.about {
  max-width: 800px;
  margin: auto;
  padding: 60px 20px;
  text-align: center;
}

.about h2 {
  margin-bottom: 12px;
  color: var(--primary);
}

.about p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.85;
}

/* ======================
   CASE CARDS (PUBLIC)
====================== */

.case-card {
  background: white;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

body.dark .case-card {
  background: #1e293b;
}

.case-card h3 {
  margin-bottom: 6px;
}

.case-documents {
  margin-top: 10px;
  font-size: 14px;
}

.case-documents a {
  display: inline-block;
  margin-top: 6px;
  color: #0284c7;
  text-decoration: none;
}

.case-documents a:hover {
  text-decoration: underline;
}

/* ======================
   DONATE BUTTON
====================== */

.donate-btn {
  margin-top: 14px;
  padding: 12px 20px;
  background: #16a34a;
  color: white;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
}

.donate-btn:hover {
  opacity: 0.95;
}

/* ======================
   ADMIN DASHBOARD
====================== */

.admin-summary {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-weight: bold;
}

.admin-summary span {
  padding: 6px 12px;
  border-radius: 999px;
  background: #e5e7eb;
}

body.dark .admin-summary span {
  background: #334155;
}

.admin-case {
  background: white;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

body.dark .admin-case {
  background: #1e293b;
}

.admin-case h3 {
  margin-bottom: 6px;
}

.admin-docs {
  margin: 10px 0;
  font-size: 14px;
}

.admin-docs a {
  color: #0284c7;
  text-decoration: none;
}

.admin-docs a:hover {
  text-decoration: underline;
}

/* ======================
   STATUS BADGES
====================== */

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 999px;
  margin-bottom: 8px;
}

.status-badge.pending {
  background: #fde68a;
  color: #92400e;
}

.status-badge.approved {
  background: #bbf7d0;
  color: #065f46;
}

.status-badge.rejected {
  background: #fecaca;
  color: #7f1d1d;
}

/* ======================
   ADMIN BUTTONS
====================== */

.admin-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.admin-actions button {
  flex: 1;
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

/* Approve */
.admin-actions .btn-approve {
  background-color: #16a34a;
  color: #ffffff;
}

/* Reject */
.admin-actions .btn-reject {
  background-color: #f59e0b;
  color: #1f2937;
}

/* Delete */
.admin-actions .btn-delete {
  background-color: #dc2626;
  color: #ffffff;
}

.admin-actions button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ======================
   FORMS (SUBMIT / LOGIN)
====================== */

.form-container,
.login-container {
  max-width: 420px;
  margin: auto;
  padding: 20px;
}

form input,
form button,
.login-container input,
.login-container button {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  font-size: 14px;
}

form input,
.login-container input {
  border: 1px solid #cbd5e1;
}

form button,
.login-container button {
  background: var(--primary);
  color: white;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

form button:hover,
.login-container button:hover {
  opacity: 0.95;
}

/* ======================
   LOGOUT BUTTON
====================== */

#logoutBtn {
  background: transparent;
  border: 1px solid white;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
}

/* ======================
   FOOTER
====================== */
 
.footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 16px;
  font-size: 14px;
}

/* ======================
   MOBILE
====================== */

@media (max-width: 480px) {
  .admin-actions {
    flex-direction: column;
  }

  .hero-content h1 {
    font-size: 32px;
  }
}
