:root {
  --ink: #0f2b2a;
  --ink-soft: #23423f;
  --paper: #fffaf2;
  --bg: #f0efe8;
  --accent: #0f8a5f;
  --accent-2: #f59e0b;
  --accent-3: #0f6aa8;
  --shadow: 0 16px 36px rgba(15, 42, 41, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --header-height: 84px;
  --bs-body-bg: #f0efe8;
  --bs-body-color: #0f2b2a;
  --bs-primary: #0f8a5f;
  --bs-success: #0f8a5f;
  --bs-warning: #f59e0b;
  --bs-info: #0f6aa8;
  --bs-border-color: rgba(15, 42, 41, 0.12);
  --bs-border-radius-lg: 20px;
  --bs-border-radius: 14px;
  --bs-box-shadow: 0 16px 36px rgba(15, 42, 41, 0.12);
  --bs-font-sans-serif: 'Kalpurush', 'SolaimanLipi', 'Noto Serif Bengali', serif;
}

body.theme-base {
  margin: 0;
  font-family: 'Kalpurush', 'SolaimanLipi', 'Noto Serif Bengali', serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 10%, #fff7e6 0%, #f1f0e8 45%, #e6f4f0 100%);
  line-height: 1.7;
  padding-top: calc(var(--header-height) + 24px);
}

body.theme-base header {
  background: rgba(255, 250, 242, 0.95) !important;
  color: var(--ink) !important;
  padding: 1rem 2rem !important;
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

body.theme-base header .container {
  width: 100%;
}

body.theme-base header h1,
body.theme-base header h2,
body.theme-base header h3 {
  margin: 0;
  color: #fff;
  text-align: center;
}

body.theme-base header h1,
body.theme-base header h2,
body.theme-base header h3,
body.theme-base header h4 {
  font-size: 1.4rem;
  line-height: 1.25;
}

body.theme-base header h1,
body.theme-base header h2,
body.theme-base header h3,
body.theme-base header h4,
body.theme-base header img,
body.theme-base header .back-btn,
body.theme-base header .logout-btn,
body.theme-base header .logout-button {
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
}

body.theme-base header .back-btn,
body.theme-base header .logout-btn,
body.theme-base header .logout-button {
  margin: 4px 0;
}

body.theme-base .site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 6vw;
  height: var(--header-height);
}

body.theme-base .site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

body.theme-base .site-brand img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

body.theme-base .site-brand span {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

body.theme-base .site-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

body.theme-base .btn {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.95rem;
  background: var(--accent);
  color: #fff;
  transition: 0.2s ease;
}

body.theme-base .btn.secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(15, 138, 95, 0.35);
}

body.theme-base .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(15, 138, 95, 0.2);
}

body.theme-base .site-footer {
  margin-top: 60px;
  padding: 24px 6vw 40px;
  border-top: 1px solid rgba(15, 42, 41, 0.1);
  color: var(--ink-soft);
  background: rgba(255, 250, 242, 0.7);
}

body.theme-base .admin-surface {
  background: var(--paper);
  border: 1px solid rgba(15, 42, 41, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

body.theme-base .admin-card {
  background: #fff;
  border: 1px solid rgba(15, 42, 41, 0.08);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.theme-base .admin-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 42, 41, 0.18);
}

body.theme-base .admin-title {
  color: var(--ink);
}

body.theme-base .admin-subtitle {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

body.theme-base .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding: 24px;
}

body.theme-base .service-box,
body.theme-base .section {
  background: var(--paper);
  border: 1px solid rgba(15, 42, 41, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--ink);
  text-decoration: none;
  width: 100%
}

body.theme-base .service-box:hover,
body.theme-base .section:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 42, 41, 0.18);
  background: rgba(15, 138, 95, 0.08);
}

body.theme-base .service-title {
  font-weight: 600;
}

body.theme-base .logout-btn,
body.theme-base .back-btn,
body.theme-base .download-btn,
body.theme-base .logout-button {
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.95rem;
  border: 1px solid transparent;
  text-decoration: none;
  transition: 0.2s ease;
}

body.theme-base .logout-btn,
body.theme-base .logout-button {
  background: #dc2626;
  color: #fff;
}

body.theme-base .back-btn {
  background: transparent;
  color: var(--accent-3);
  border-color: rgba(15, 106, 168, 0.4);
}

body.theme-base .download-btn {
  background: var(--accent);
  color: #fff;
}

body.theme-base .admin-modal,
body.theme-base .container {
  border-radius: var(--radius-md);
}

body.theme-base section,
body.theme-base [id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

body.theme-base .footer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body.theme-base .footer-grid strong {
  color: var(--ink);
}

@media (max-width: 720px) {
  :root {
    --header-height: 120px;
  }

  body.theme-base .site-header {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
  }

  body.theme-base .site-actions {
    width: 100%;
  }
}
