/* ===============================
   GLOBAL RESET & BASE
================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Hind Vadodara', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial;
  background: #f5f7fb;
  color: #0f172a;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 16px;
}

h1, h2, h3 {
  font-weight: 600;
}

p {
  line-height: 1.7;
  color: #334155;
}

/* ===============================
   HEADER
================================ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-btn {
  font-size: 22px;
  cursor: pointer;
}

.logo img {
  height: 34px;
  display: block;
}

.theme-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
}

/* ===============================
   SIDE MENU
================================ */
.side-menu {
  position: fixed;
  top: 0;
  left: -270px;
  width: 260px;
  height: 100%;
  background: #ffffff;
  z-index: 1001;
  transition: 0.3s ease;
  box-shadow: 2px 0 20px rgba(0,0,0,0.15);
}

.menu-header {
  padding: 16px;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  border-bottom: 1px solid #e5e7eb;
}

.side-menu a {
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 15px;
}

.side-menu a:hover {
  background: #f1f5f9;
}

#overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1000;
}

/* ===============================
   HERO (CLEAN GOV STYLE)
================================ */
.hero-clean {
  background: #ffffff;
  padding: 70px 16px 60px;
  border-bottom: 1px solid #e5e7eb;
}

.hero-inner {
  max-width: 900px;
  margin: auto;
}

.hero-tag {
  display: inline-block;
  background: #eef2ff;
  color: #1e40af;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.hero-clean h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
}

.hero-clean h1 span {
  display: block;
  font-size: 20px;
  font-weight: 500;
  color: #475569;
}

.hero-clean p {
  max-width: 700px;
  font-size: 16px;
}

.hero-cta {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-main {
  background: #2563eb;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
}

.btn-outline {
  border: 1px solid #c7d2fe;
  color: #1e40af;
  padding: 12px 24px;
  border-radius: 10px;
  background: #ffffff;
}

/* ===============================
   MAIN CONTENT
================================ */
.main-content {
  padding-bottom: 110px;
}

/* ===============================
   TOOLS GRID
================================ */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 18px;
  margin-top: 26px;
}


/* ===============================
   FORMS
================================ */
form input,
form textarea,
form button {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  font-size: 14px;
}

form button {
  background: #2563eb;
  color: #ffffff;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/* ===============================
   FOOTER (MATCHING YOUR HTML)
================================ */
.footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 36px 16px 28px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 32px;
}

.footer-brand strong {
  font-size: 16px;
}

.footer-brand p {
  margin-top: 8px;
  font-size: 14px;
  color: #64748b;
  max-width: 320px;
}

.footer-links h4 {
  margin-bottom: 12px;
  font-size: 15px;
}

.footer-links a {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #2563eb;
}

/* ===============================
   BOTTOM NAV (APP STYLE)
================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-around;
  padding: 8px 0 10px;
  z-index: 999;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
}

.bottom-nav a svg {
  width: 22px;
  height: 22px;
  margin-bottom: 4px;
  fill: #64748b;
}

.bottom-nav a.active,
.bottom-nav a.active svg {
  color: #2563eb;
  fill: #2563eb;
}

/* ===============================
   SETTINGS PAGE
================================ */
.setting-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.setting-card p {
  font-size: 13px;
  margin-top: 4px;
  color: #64748b;
}

.setting-links a {
  display: block;
  padding: 14px;
  border-radius: 12px;
  background: #ffffff;
  margin-bottom: 12px;
  font-weight: 500;
}

/* Toggle */
.switch {
  position: relative;
  width: 46px;
  height: 26px;
}

.switch input {
  display: none;
}

.slider {
  position: absolute;
  inset: 0;
  background: #cbd5f5;
  border-radius: 999px;
}

.slider:before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: 0.2s;
}

.switch input:checked + .slider {
  background: #2563eb;
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

/* Font size control */
body.font-small { font-size: 14px; }
body.font-medium { font-size: 16px; }
body.font-large { font-size: 18px; }

/* ===============================
   DARK MODE
================================ */
body.dark {
  background: #0f172a;
  color: #e5e7eb;
}

body.dark .app-header,
body.dark .footer,
body.dark .bottom-nav,
body.dark .side-menu,
body.dark .setting-card,
body.dark .setting-links a {
  background: #020617;
  border-color: #1e293b;
}

body.dark p {
  color: #cbd5f5;
}

body.dark .footer-links a {
  color: #93c5fd;
}

body.dark .bottom-nav a svg {
  fill: #94a3b8;
}

body.dark .bottom-nav a.active svg {
  fill: #60a5fa;
}

body.dark .hero-clean {
  background: #020617;
}

/* ===============================
   MOBILE FIXES
================================ */
@media (max-width: 768px) {

  .app-header {
    padding: 10px 12px;
  }

  .logo img {
    height: 30px;
  }

  .hero-clean {
    padding: 48px 16px 42px;
  }

  .hero-clean h1 {
    font-size: 26px;
  }

  .hero-clean h1 span {
    font-size: 16px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-main,
  .btn-outline {
    width: 100%;
    text-align: center;
  }

  .footer {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 22px;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===============================
   DESKTOP ONLY
================================ */
@media (min-width: 1024px) {
  .menu-btn,
  .bottom-nav {
    display: none;
  }

  .main-content {
    padding-bottom: 40px;
  }
}

/* ===============================
   TOOLS SECTION – PRO SPACING
================================ */

.tools-section {
  padding: 80px 16px 90px;
  background: linear-gradient(180deg, #f8fafc, #f1f5f9);
}

/* Section title */
.tools-title {
  max-width: 1200px;
  margin: 0 auto 48px;
  font-size: 30px;
  font-weight: 600;
  color: #0f172a;
}

/* Grid layout */
.tools-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

/* Card */
.tool-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px 34px;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

/* Hover */
.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
}

/* Icon box */
.tool-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
}

/* Icon colors */
.tool-icon.blue {
  background: #e0ecff;
  color: #2563eb;
}

.tool-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.tool-icon.orange {
  background: #ffedd5;
  color: #ea580c;
}

.tool-icon.purple {
  background: #ede9fe;
  color: #7c3aed;
}

/* Title */
.tool-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #0f172a;
  font-weight: 600;
}

/* Description */
.tool-card p {
  font-size: 14.5px;
  color: #64748b;
  line-height: 1.65;
  margin: 0;
}

/* ===============================
   MOBILE TUNING
================================ */
@media (max-width: 768px) {

  .tools-section {
    padding: 60px 14px 70px;
  }

  .tools-title {
    font-size: 24px;
    margin-bottom: 32px;
    text-align: center;
  }

  .tools-grid {
    gap: 22px;
  }

  .tool-card {
    padding: 26px 22px 28px;
  }

  .tool-icon {
    width: 48px;
    height: 48px;tools-section
    font-size: 22px;
  }
}

/* ===============================
   DARK MODE – TOOLS
================================ */
body.dark . {
  background: linear-gradient(180deg, #020617, #020617);
}

body.dark .tool-card {
  background: #020617;
  box-shadow: none;
}

body.dark .tool-card h3 {
  color: #e5e7eb;
}

body.dark .tool-card p {
  color: #94a3b8;
}
