:root {
  primary: #1b5e20;
  bg: #fff;
  --led-green: #2ecc71;
  --led-blue: #3498db;
  --led-orange: #f39c12;
  --led-bg: #050505;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  border: none;
  text-decoration: none;
}

body {
  font-family: "Poppnis", sans-serif;
  background-color: var(bg);
  color: #080808;
  height: 100%;
  margin: 0;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  margin: 0;
}

/* navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 6%;
  position: fixed;

  z-index: 9999;
  border-radius: 3rem;
  margin: 1rem 2rem;
  top: 0;
  right: 0;
  left: 0;

  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 9999;
  transition: all 0.3s ease;
}

.navbar .navbar-logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 1px;
  text-decoration: none;
  font-style: italic;
}

.navbar .navbar-logo span {
  color: #3b82f6;
}

.navbar .navbar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar .navbar-nav a {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  padding: 0.6rem 1rem;
  color: #1e293b;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar .navbar-nav a:hover {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.navbar .navbar-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 0%;
  height: 2px;
  background: #3b82f6;
  transition: 0.3s ease;
  transform: translateX(-50%);
}

.navbar .navbar-nav a:hover::after {
  width: 50%;
}

.navbar .dropdown {
  position: relative;
}

.dropdown-content {
  position: absolute;
  top: 110%;
  left: 0;
  background: white;
  min-width: 200px;
  border-radius: 12px;
  padding: 1rem 0;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.dropdown-content a {
  display: block;
  padding: 0.8rem 1rem;
  color: #334155;
  font-size: 0.95rem;
  transition: 0.2s ease;
}

.dropdown-content a:hover {
  background: #f1f5f9;
  color: #3b82f6;
}

/* Show Dropdown */
.dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* EXTRA ICON */
.navbar .navbar-extra a {
  color: #1e293b;
  margin-left: 0.7rem;
  transition: 0.3s ease;
}

.navbar .navbar-extra a:hover {
  color: #3b82f6;
}

/* HAMBURGER */
#hamburger-menu {
  display: none;
}

.dark-toggle,
.login {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.dark-toggle:hover,
.login:hover {
  transform: scale(1.2);
}

body.dark-mode {
  background: #0f172a;
  color: #e5e7eb;
}

/* card */
body.dark-mode .service-card,
body.dark-mode .timeline-content,
body.dark-mode .quote-container {
  background: #1e293b;
  color: #e5e7eb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

/* section background */
body.dark-mode .services,
body.dark-mode #sejarah-masjid,
body.dark-mode .quran-quote {
  background: #020617;
}

/* teks sekunder */
body.dark-mode p {
  color: #cbd5f5;
}

/* judul */
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3 {
  color: #f1f5f9;
}
/* hero section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;

  background:
    linear-gradient(rgba(20, 40, 45, 0.75), rgba(20, 40, 45, 0.85)),
    url("../img/beranda.jpeg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* container text */
.hero .contentt {
  padding: 1.4rem 7%;
  max-width: 40rem;
  z-index: 2;
  /* padding-bottom: 15rem !important; */
}

/* judul */
.hero .contentt h1 {
  font-size: 4rem;
  color: #ffffff;
  line-height: 1.1;
  font-weight: 700;

  text-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);

  animation: fadeUp 1.5s ease forwards;
}

.hero .contentt h1 span {
  color: #7be7ff;
}

/* paragraf */
.hero .contentt p {
  font-size: 1.2rem;
  margin-top: 1.2rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);

  animation: fadeUp 1.9s ease forwards;
}

/* tombol */
.hero .contentt .cta {
  margin-top: 2rem;
  padding: 0.9rem 2.2rem;

  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;

  background: linear-gradient(135deg, #00c6ff, #0072ff);
  border-radius: 30px;

  display: inline-block;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);

  transition: all 0.3s ease;
}

.hero .contentt .cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
}

.hero .contentt .cta_second {
  margin-top: 1rem;
  padding: 0.9rem 2.2rem;
  font-size: 1.1rem;
  color: #fff;
  text-decoration: none;
  border: 2px solid #38bdf8;
  border-radius: 30px;
  transition: all 0.3s ease;
  /* display: block;
  width: 15.5rem; */
}

.hero .contentt .cta_second:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #00c6ff, #0072ff);
}

/* scroll indicator */
.scroll-down {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);

  width: 26px;
  height: 42px;

  border: 2px solid #fff;
  border-radius: 20px;
}

.scroll-down::before {
  content: "";
  position: absolute;

  top: 8px;
  left: 50%;
  transform: translateX(-50%);

  width: 6px;
  height: 6px;

  background: #fff;
  border-radius: 50%;

  animation: scroll 2s infinite;
}

/* animasi scroll */
@keyframes scroll {
  0% {
    opacity: 0;
    transform: translate(-50%, 0);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, 15px);
  }
}

/* animasi muncul */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* about section */
.aboutt {
  padding: 2.8rem 7%;
  scroll-margin-top: 80px;
  background: #f9fbfc;
}

body.dark-mode .aboutt,
body.dark-mode .aboutt .content h3 {
  background: #1e293b;
  color: #e2e8f0;
}

body.dark-mode .aboutt .content p {
  background: #1e293b;
  color: #7a838f;
}
.aboutt h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3rem;
  font-weight: 700;
  color: #222;
}

.aboutt .row {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  /* opacity: 0;
  transform: translateY(50px); */
  transition: all 0.8s ease;
}

/* .about .row.show {
  opacity: 1;
  transform: translateY(0);
} */

/* card gambar */
.aboutt .row .about-img {
  flex: 1 1 380px;
  background: #fff;
  padding: 20px;
  border-radius: 25px;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  transition-delay: 0.2s;
  /* transform: scale(0.85);
  opacity: 0; */
  transition: all 0.8s ease;
}

/* .about .row .about-img.show {
  opacity: 1;
  transform: scale(1);
} */

.aboutt .row .about-img:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.aboutt .row .about-img img {
  width: 100%;
  border-radius: 20px;
  display: block;
}

/* text content */
.aboutt .row .content {
  flex: 1 1 420px;
  transition-delay: 0.4s;
  /* padding: 2px; */
}

.aboutt .row .content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #111;
  font-weight: 600;
}

.aboutt .row .content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 1rem;
  text-align: justify;
}

.services {
  padding: 90px 25px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  scroll-margin-top: 5px;
}

.services h2 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: #0f2d3a;
  letter-spacing: 1px;
}

.service-container {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  justify-content: center;
}

.service-card {
  flex: 1 1 300px;
  background: #ffffff;
  padding: 24px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);

  box-shadow:
    0 10px 25px rgba(0, 0, 0, 0.06),
    0 4px 10px rgba(0, 0, 0, 0.03);

  text-align: left;

  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.service-card > * {
  position: relative;
  z-index: 2;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #e8f7ff, #ffffff);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.02);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.12),
    0 8px 20px rgba(0, 0, 0, 0.08);
}

.service-card img.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;

  border-radius: 14px;
  margin-bottom: 18px;

  transition: transform 0.4s ease;
}

.service-card:hover img.service-img {
  transform: scale(1.06);
}

.service-card h3 {
  color: #0a3d62;
  margin-bottom: 10px;
  font-size: 1.3rem;
  font-weight: 600;
}

.service-card p {
  line-height: 1.7;
  color: #4a4a4a;
  text-align: justify;
  font-size: 0.95rem;
}

/* ================= CONTACT ================= */

.contact {
  padding: 2rem 7% 5rem;
  background: #eeeff0;
  color: rgb(35, 33, 33);
  position: relative;
  overflow: hidden;
}

/* BACKGROUND EFFECT */

.contact::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(167, 195, 240, 0.12);
  border-radius: 50%;
  top: -200px;
  right: -150px;
  filter: blur(120px);
}

.contact::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(161, 178, 214, 0.1);
  border-radius: 50%;
  bottom: -150px;
  left: -120px;
  filter: blur(120px);
}

/* TITLE */

.contact h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 2;
}

.contact p {
  text-align: center;
  max-width: 750px;
  margin: auto;
  line-height: 1.8;
  color: #212122;
  position: relative;
  z-index: 2;
}

/* ROW */

.contact .row {
  display: flex;
  gap: 2rem;
  margin-top: 4rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* MAP */

.contact .map {
  flex: 1 1 45rem;
  width: 100%;
  min-height: 350px;
  border: none;
  border-radius: 30px;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.35),
    0 0 30px rgba(59, 130, 246, 0.12);
  transition: 0.4s ease;
}

/* .contact .map:hover {
  transform: translateY(-5px);
} */

/* RIGHT SIDE */

.contact-wrapper {
  flex: 1 1 35rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* CARD */

.contact-info,
.contact-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px);
  border-radius: 30px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.06);

  transition: 0.4s ease;
}

/* .contact-info:hover,
.contact-form:hover {
  transform: translateY(-6px);

  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(59, 130, 246, 0.15);
} */

.contact-info h3,
.contact-form h3 {
  font-size: 1.6rem;
  margin-bottom: 2rem;
  color: #041831;
}

/* CONTACT ITEM */

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;

  padding: 1rem 1.2rem;
  margin-bottom: 1rem;

  border-radius: 18px;

  background: rgba(255, 255, 255, 0.04);

  transition: 0.3s ease;
}

.contact-item:hover {
  background: rgba(59, 130, 246, 0.12);
  transform: translateX(6px);
}

.contact-item i {
  color: #60a5fa;
  width: 22px;
  height: 22px;
}

.contact-item span {
  color: #1d1d1e;
  font-size: 0.98rem;
}

/* FORM */

.contact-form form {
  margin-top: 1rem;
}

.input-group {
  display: flex;
  align-items: center;
  gap: 1rem;

  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;

  border-radius: 18px;
  /* border-color: #000000;
  color: #000000; */

  background: rgba(19, 18, 18, 0.05);

  border: 1px solid transparent;

  transition: 0.3s ease;
}

.input-group:focus-within {
  border-color: #3b82f6;

  box-shadow:
    0 0 15px rgba(59, 130, 246, 0.35),
    0 0 25px rgba(59, 130, 246, 0.1);
}

.input-group i {
  color: #60a5fa;
  width: 20px;
  height: 20px;
}

.input-group input,
.input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;

  color: rgb(0, 0, 0);
  font-size: 1rem;
  font-family: inherit;
}

.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #656161;
}

/* TEXTAREA */

.textarea {
  align-items: flex-start;
}

.textarea textarea {
  min-height: 120px;
  resize: none;
}

/* BUTTON */

.btn {
  width: 100%;
  padding: 1rem;

  border: none;
  border-radius: 18px;

  background: linear-gradient(135deg, #019eff, #00c6ff);
  color: white;
  font-size: 1rem;
  font-weight: 700;

  cursor: pointer;

  transition: 0.35s ease;

  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.btn:hover {
  transform: translateY(-4px);

  box-shadow:
    0 15px 35px rgba(37, 99, 235, 0.45),
    0 0 25px rgba(59, 130, 246, 0.25);
}

/* footer */

footer {
  background: linear-gradient(135deg, #019eff, #00c6ff);
  text-align: center;
  padding: 0.3rem 7%;
  color: white;
  border-radius: 1rem;
}

/* SOCIAL ICON */

footer .socials {
  margin-bottom: 0.3rem;
}

footer .socials a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  margin: 0 0.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transition: 0.3s;
}

footer .socials a:hover {
  background: white;
  color: #019eff;
  transform: translateY(-4px);
}

/* LINKS */

footer .links {
  margin-bottom: 0.3rem;
}

footer .links a {
  color: white;
  text-decoration: none;
  margin: 0 0.8rem;
  font-size: 0.95rem;
  transition: 0.3s;
}

footer .links a:hover {
  color: #dff6ff;
}

/* GARIS PEMBATAS */

footer hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin: 1.5rem 0;
}

/* CREDIT */

footer .credit {
  font-size: 0.9rem;
  opacity: 0.9;
}

footer .credit a {
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}

#sejarah-masjid {
  background: linear-gradient(180deg, #ffffff, #f4faff);
  padding: 6rem 1.5rem;
  font-family: Arial, sans-serif;
  text-align: center;
}

body.dark-mode #sejarah-masjid h2 {
  color: #cbd2dc;
}

.container {
  width: 100%;
  min-height: 10ovh;
}

body.dark-mode {
  background-color: #0a0a0a !important;
}

#sejarah-masjid h2 {
  font-size: 2.6rem;
  margin-bottom: 4rem;
  color: #0a2e36;
}

/* CONTAINER */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: auto;
  padding-left: 40px;
}

/* GARIS TIMELINE MODERN */
.timeline::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 4px;

  background: linear-gradient(to bottom, #00c6ff, #0288d1, #4fc3f7);

  border-radius: 10px;

  box-shadow: 0 0 15px rgba(0, 150, 255, 0.3);
}

/* ITEM */
.timeline-item {
  position: relative;
  margin-bottom: 60px;
  padding-left: 80px;
}

/* BULATAN NODE */
.timeline-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 20px;
  width: 20px;
  height: 20px;

  background: #0288d1;
  border-radius: 50%;

  border: 4px solid #fff;

  box-shadow: 0 0 10px rgba(0, 140, 255, 0.6);
}

/* FOTO */
.timeline-icon {
  width: 140px;
  height: 140px;

  border-radius: 50%;
  overflow: hidden;

  margin-bottom: 20px;

  border: 5px solid #fff;

  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);

  transition: transform 0.4s ease;
}

.timeline-icon:hover {
  transform: scale(1.05);
}

.timeline-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CARD */
.timeline-content {
  background: #fff;

  padding: 1.8rem 2rem;
  border-radius: 16px;

  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);

  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-6px);

  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.12);
}

.timeline-content h3 {
  margin-bottom: 10px;
  color: #0277bd;
}

.timeline-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #444;
  text-align: justify;
}
/* hero section */
.hero_sejarah,
.hero_struktur {
  max-height: 100vh;
  display: flex;
  background:
    linear-gradient(rgba(20, 40, 45, 0.75), rgba(20, 40, 45, 0.85)),
    url("../img/beranda\ \(set\).jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  height: 50vh;
  width: 100%;
  object-fit: contain;
  border-bottom-left-radius: 100px;
  border-bottom-right-radius: 100px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

/* ngasih gradiasi di bawah */

/* .hero_sejarah::after,
.hero_struktur::after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 30%;
  bottom: 0;
  background: linear-gradient(
    0deg,
    rgba(169, 228, 247, 0.8) 8%,
    rgba(255, 255, 255, 0) 50%
  );
  border-bottom-left-radius: 100px;
  border-bottom-right-radius: 100px;
} */

.hero_sejarah .content h1,
.hero_sejarah .content h1 {
  text-align: center;
  padding-top: 10rem;
  padding-left: 32rem;
  color: #000000;
  font-weight: bold;
}

.hero_sejarah .content p,
.hero_sejarah .content p {
  text-align: center;
  padding-left: 32rem;
  color: #000000;
  font-style: italic;
  font-size: large;
  font-weight: bold;
}

/* ================= STRUKTUR ================= */

.struktur-masjid {
  padding: 4rem 5%;
  background: #f8fafc;
  text-align: center;
}

.struktur-masjid h2 {
  font-size: 2.5rem;
  color: #1f2321;
  margin-bottom: 4rem;
}

/* LEVEL */
.struktur-level {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  margin-bottom: 3rem;
  flex-wrap: nowrap;
}

/* GARIS HORIZONTAL */
.struktur-level::before {
  content: "";
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 48%;
  height: 4px;
  background: #78b5db;
}

.struktur-levell::before {
  content: "";
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  height: 4px;
  background: #78b5db;
}

.struktur-levell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  margin-bottom: 2rem;
  flex-wrap: nowrap;
}

/* LEVEL PERTAMA TIDAK ADA GARIS */
.ketua-level::before {
  display: none;
}

/* GARIS VERTIKAL */
.vertical-line {
  width: 4px;
  height: 60px;
  background: #78b5db;
  margin: -3rem auto 1rem;
  margin-bottom: 1rem;
}

.verticall-line {
  width: 4px;
  height: 60px;
  background: #78b5db;
  margin: -3rem auto 1rem;
}

/* CARD */
.struktur-card {
  background: white;
  width: 240px;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  transition: 0.3s;
  position: relative;
  z-index: 2;
  margin-top: 1rem;
}

/* GARIS KE CARD */
.struktur-card::before {
  content: "";
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 40px;
  background: #78b5db;
  margin-top: -1rem;
}

.ketua-level .struktur-card::before {
  display: none;
}

.struktur-card:hover {
  transform: translateY(-8px);
}

.struktur-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #78b5db;
  margin-bottom: 1rem;
}

.struktur-card h3 {
  color: #000000;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.struktur-card p {
  color: #555;
  font-size: 1rem;
}

/* DIVISI TANPA FOTO */
.divisi-card {
  padding-top: 2rem;
}

/* CARD DIVISI LEBIH SIMPLE */
.divisi-card h3 {
  margin-top: 0;
}

/* MOBILE */

/* MOBILE */

/* Garis vertikal dan horizontal */

/* Level 1 ke Level 2 */

.str {
  text-align: center;
  margin: 1.5rem;
}

.str p {
  font-size: 2rem;
  font-weight: bold;
  font-style: italic;
}

#jadwal-sholat {
  background-color: #ffffff;
  padding: 4rem 1rem;
  font-family: Arial, sans-serif;
  text-align: center;
}

#jadwal-sholat h2 {
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: #01111b;
  font-weight: bold;
}

.sholat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.sholat-card {
  background-color: #f0f9ff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
  text-align: center;
}

.sholat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.sholat-card h3 {
  margin-bottom: 1rem;
  color: #00796b;
  font-size: 1.3rem;
}

.sholat-times {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sholat-times li {
  margin: 0.5rem 0;
  font-size: 1rem;
  color: #004d40;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sholat-times li span {
  font-weight: bold;
  color: #0277bd;
}

#event-ramadhan {
  background-color: #ffffff; /* putih bersih */
  padding: 4rem 1rem;
  font-family: Arial, sans-serif;
  color: #004d40;
  text-align: center;
}

#event-ramadhan h2 {
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: #010d13;
  font-weight: bold;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.event-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.event-card img {
  width: 100%;
  height: 220px; /* foto lebih besar */
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover img {
  transform: scale(1.05); /* efek zoom ringan saat hover */
}

.event-content {
  padding: 2rem 1.5rem;
  text-align: left;
}

.event-content h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #00796b;
  font-size: 1.5rem;
}

.event-content p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #004d40;
}

#event-qurban {
  background-color: #ffffff;
  padding: 5rem 1rem;
  font-family: Arial, sans-serif;
  color: #004d40;
  text-align: center;
}

#event-qurban h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #000000; /* warna hangat untuk Qurban */
  font-weight: bold;
}

#event-qurban .intro {
  font-size: 1.3rem;
  margin-bottom: 3rem;
  color: #000000;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.qurban-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.qurban-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease;
}

.qurban-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.qurban-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.qurban-card:hover img {
  transform: scale(1.05);
}

.qurban-content {
  padding: 2rem 1.5rem;
  text-align: left;
}

.qurban-content h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  color: #000000;
  font-size: 1.5rem;
}

.qurban-content p {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #004d40;
}

.jadwal {
  padding: 0.2rem 7%;
  background: #f9fbfc;
  scroll-margin-top: 80px;
}

body.dark-mode .jadwal,
body.dark-mode .services,
body.dark-mode .contact,
body.dark-mode .quran-quote,
body.dark-mode #event-qurban,
body.dark-mode #event-ramadhan,
body.dark-mode #sejarah-masjid,
body.dark-mode .container,
body.dark-mode .contact {
  background: #1e293b;
  color: #e2e8f0;
}

body.dark-mode {
  background: #1e293b;
}

body.dark-mode .qurban-card,
body.dark-mode .qurban-content,
body.dark-mode .event-card,
body.dark-mode .event-content {
  background: #5b7aad;
  color: #e2e8f0;
}

body.dark-mode #event-qurban h2,
body.dark-mode #event-qurban p,
body.dark-mode #event-ramadhan h2 {
  color: #e2e8f0;
}

body.dark-mode .jadwal-card {
  background: #5c7cb1;
  color: #e2e8f0;
}

/* ================= DARK MODE STRUKTUR ================= */

body.dark-mode .struktur-masjid {
  background: #1e293b;
}

/* JUDUL */
body.dark-mode .struktur-masjid h2 {
  color: #e2e8f0;
}

/* ================= CARD ================= */

body.dark-mode .struktur-card {
  background: #5c7cb1;
}

/* FOTO */
body.dark-mode .struktur-card img {
  border: 5px solid #6d6f70;
}

/* JABATAN */
body.dark-mode .struktur-card h3 {
  color: #e2e8f0;
}

/* NAMA */
body.dark-mode .struktur-card p {
  color: #e5e7eb;
}

/* ================= DIVISI TANPA FOTO ================= */

/* body.dark-mode .divisi-card {
  padding-top: 2rem;
} */

/* ================= GARIS ================= */

body.dark-mode .vertical-line,
body.dark-mode .verticall-line,
body.dark-mode .struktur-level::before,
body.dark-mode .struktur-levell::before,
body.dark-mode .struktur-card::before,
body.dark-mode .level-1::after,
body.dark-mode .level-2::before,
body.dark-mode .level-2::after,
body.dark-mode .level-3::before,
body.dark-mode .level-2 .jabatan::before,
body.dark-mode .level-3 .jabatan::before {
  background: #38bdf8;
}

.jadwal h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.next-prayer-box {
  text-align: center;
  margin-bottom: 3rem;
}

.next-prayer-box h3 {
  font-size: 2rem;
  font-weight: bold;
  padding: 0.2rem;
}

#countdown {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #0a3d62;

  background: linear-gradient(135deg, #e8f6ff, #d6f0ff);
  padding: 14px 28px;

  border-radius: 14px;
  display: inline-block;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
}

.jadwal-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.jadwal-card {
  background: white;
  padding: 25px;
  border-radius: 20px;
  text-align: center;

  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);

  transition: all 0.3s ease;
}

.jadwal-card:hover {
  transform: translateY(-5px);
}

.jadwal-card .icon {
  font-size: 2rem;
}

.jadwal-card h3 {
  margin: 10px 0;
}

.jadwal-card p {
  font-size: 1.3rem;
  font-weight: 600;
}

.jadwal-card.current {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

/* warna saat waktu sholat masuk */

.active-subuh {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: white;
}

.active-dzuhur {
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: white;
}

.active-ashar {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.active-maghrib {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
}

.active-isya {
  background: linear-gradient(135deg, #6366f1, #4338ca);
  color: white;
}

.quran-quote {
  padding: 5.5rem 0.5rem;

  background: linear-gradient(180deg, #f7fbff, #edf6ff);

  display: flex;
  justify-content: center;
}

.quote-container {
  max-width: 900px;

  padding: 60px 50px;

  background: white;

  border-radius: 24px;

  text-align: center;

  position: relative;

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.08),
    0 10px 25px rgba(0, 0, 0, 0.05);

  transition: all 0.35s ease;
}

.quote-container:hover {
  transform: translateY(-8px);

  box-shadow:
    0 35px 80px rgba(0, 0, 0, 0.12),
    0 15px 35px rgba(0, 0, 0, 0.08);
}

/* quote icon */

.quote-mark {
  font-size: 5rem;

  color: #0288d1;

  opacity: 0.15;

  position: absolute;

  top: 20px;
  left: 30px;
}

/* ayat arab */

.quote-arab {
  font-size: 2rem;

  line-height: 2.4;

  direction: rtl;

  margin-bottom: 30px;

  color: #0a2e36;

  font-weight: 500;
}

/* terjemahan */

.quote-text {
  font-size: 1.2rem;

  line-height: 1.8;

  color: #555;

  font-style: italic;

  margin-bottom: 18px;
}

/* sumber ayat */

.quote-surah {
  font-size: 1rem;

  font-weight: 600;

  letter-spacing: 1px;

  color: #0288d1;
}

.mosque-clock {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: 12rem;
}

.clock {
  width: 260px;
  height: 260px;

  border: 8px solid rgba(255, 255, 255, 0.8);

  border-radius: 50%;

  position: relative;

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(10px);

  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.4),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* angka */

.number {
  position: absolute;
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
}

.n12 {
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.n3 {
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.n6 {
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}
.n9 {
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
}

/* titik tengah */

.center-dot {
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* jarum */

.hand {
  position: absolute;

  bottom: 50%;
  left: 50%;

  transform-origin: bottom;

  transform: translateX(-50%) rotate(0deg);

  border-radius: 5px;
}

.hour {
  width: 6px;
  height: 70px;
  background: white;
}

.minute {
  width: 4px;
  height: 90px;
  background: #7dd3fc;
}

.second {
  width: 2px;
  height: 100px;
  background: #ff4d4d;
}

/* ================= LOGIN CONTAINER ================= */
.login-container {
  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 2rem;

  background:
    radial-gradient(circle at top left, #78b5db 0%, transparent 30%),
    radial-gradient(circle at bottom right, #5c7cb1 0%, transparent 35%),
    linear-gradient(135deg, #eef4ff, #dbeafe);

  font-family: "Poppins", sans-serif;

  overflow: hidden;
  position: relative;
}

/* efek blur background */
.login-container::before {
  content: "";

  position: absolute;

  width: 350px;
  height: 350px;

  background: rgba(120, 181, 219, 0.25);

  border-radius: 50%;

  top: -100px;
  left: -100px;

  filter: blur(80px);
}

.login-container::after {
  content: "";

  position: absolute;

  width: 350px;
  height: 350px;

  background: rgba(92, 124, 177, 0.25);

  border-radius: 50%;

  bottom: -120px;
  right: -120px;

  filter: blur(90px);
}

/* ================= LOGIN CARD ================= */
.login-card {
  position: relative;
  z-index: 2;

  width: 100%;
  max-width: 420px;

  padding: 3rem 2.5rem;

  border-radius: 32px;

  background: rgba(255, 255, 255, 0.72);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.35);

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);

  text-align: center;

  animation: fadeUp 0.8s ease;
}

/* glow tipis */
.login-card::before {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: 32px;

  padding: 1px;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6),
    rgba(120, 181, 219, 0.4),
    rgba(92, 124, 177, 0.4)
  );

  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);

  -webkit-mask-composite: xor;

  pointer-events: none;
}

/* ================= TITLE ================= */
.login-card h2 {
  font-size: 2rem;
  font-weight: 700;

  color: #1e293b;

  margin-bottom: 0.5rem;
}

.subtitle {
  font-size: 0.95rem;
  color: #64748b;

  margin-bottom: 2.2rem;

  line-height: 1.5;
}

/* ================= INPUT ================= */
.login-card input {
  width: 100%;

  padding: 1rem 1.2rem;

  margin-bottom: 1.2rem;

  border-radius: 16px;

  border: 1px solid rgba(148, 163, 184, 0.3);

  background: rgba(255, 255, 255, 0.65);

  font-size: 0.95rem;
  color: #0f172a;

  outline: none;

  transition: all 0.3s ease;

  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.03);
}

.login-card input::placeholder {
  color: #94a3b8;
}

.login-card input:focus {
  border-color: #5c7cb1;

  background: rgba(255, 255, 255, 0.9);

  transform: translateY(-2px);

  box-shadow:
    0 0 0 4px rgba(92, 124, 177, 0.15),
    0 10px 25px rgba(92, 124, 177, 0.12);
}

/* ================= BUTTON LOGIN ================= */
.login-card button {
  width: 100%;

  padding: 1rem;

  border: none;
  border-radius: 18px;

  background: linear-gradient(135deg, #5c7cb1, #78b5db);

  color: white;

  font-size: 1rem;
  font-weight: 600;

  cursor: pointer;

  position: relative;

  overflow: hidden;

  transition: all 0.35s ease;

  box-shadow:
    0 12px 25px rgba(92, 124, 177, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* shine effect */
.login-card button::before {
  content: "";

  position: absolute;

  top: 0;
  left: -120%;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );

  transition: 0.7s;
}

.login-card button:hover::before {
  left: 120%;
}

.login-card button:hover {
  transform: translateY(-4px);

  box-shadow:
    0 18px 35px rgba(92, 124, 177, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.login-card button:active {
  transform: scale(0.98);
}

/* ================= BUTTON KEMBALI ================= */
.btn-kembali {
  position: relative;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;

  padding: 0.95rem 1.2rem;

  margin-top: 1.3rem;

  border-radius: 18px;

  text-decoration: none;

  font-size: 0.95rem;
  font-weight: 600;

  color: #fff;

  background: linear-gradient(135deg, #334155, #475569);

  overflow: hidden;

  transition: all 0.35s ease;

  box-shadow:
    0 10px 22px rgba(51, 65, 85, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-kembali::before {
  content: "";

  position: absolute;

  top: 0;
  left: -120%;

  width: 100%;
  height: 100%;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );

  transition: 0.7s;
}

.btn-kembali:hover::before {
  left: 120%;
}

.btn-kembali:hover {
  transform: translateY(-3px);

  box-shadow:
    0 15px 28px rgba(51, 65, 85, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ================= ANIMATION ================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(35px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
/* @media (max-width: 450px) {
  .btn-kembali {
    width: 100%;

    padding: 13px 20px;

    font-size: 0.92rem;
  }
} */

/* LAYOUT */
.dashboard {
  display: flex;
  min-height: 100vh;
}

/* =========================
   SIDEBAR
========================= */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;

  width: 260px;
  height: 100vh;

  padding: 1.4rem 1rem;

  box-sizing: border-box;

  background: linear-gradient(180deg, #052e16 0%, #14532d 45%, #071f12 100%);

  border-right: 1px solid rgba(255, 255, 255, 0.06);

  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.18);

  overflow-y: auto;
  overflow-x: hidden;

  z-index: 1000;

  transition: all 0.3s ease;
}

/* =========================
   SCROLLBAR
========================= */

.sidebar::-webkit-scrollbar {
  width: 5px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);

  border-radius: 20px;
}

/* =========================
   BRAND / TITLE
========================= */

.sidebar h2 {
  font-size: 1.5rem;
  font-weight: 800;

  margin-bottom: 0.3rem;

  color: #ffffff;

  letter-spacing: -0.5px;
}

.sidebar p {
  font-size: 0.82rem;

  color: rgba(255, 255, 255, 0.55);

  margin-bottom: 2rem;

  line-height: 1.5;
}

/* =========================
   MENU LIST
========================= */

.sidebar ul {
  list-style: none;

  padding: 0;
  margin: 0;
}

/* =========================
   MENU ITEM
========================= */

.sidebar ul li {
  position: relative;

  display: flex;
  align-items: center;
  gap: 0.8rem;

  padding: 0.95rem 1rem;

  margin-bottom: 0.55rem;

  border-radius: 16px;

  cursor: pointer;

  color: rgba(255, 255, 255, 0.75);

  font-size: 0.92rem;
  font-weight: 500;

  transition: all 0.28s ease;
}

/* HOVER */

.sidebar ul li:hover {
  background: rgba(255, 255, 255, 0.08);

  color: #ffffff;

  transform: translateX(4px);
}

/* ACTIVE MENU */

.sidebar ul li.active {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.35),
    rgba(22, 163, 74, 0.18)
  );

  color: #ffffff;

  font-weight: 600;

  border: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ACTIVE INDICATOR */

.sidebar ul li.active::before {
  content: "";

  position: absolute;

  left: -10px;
  top: 50%;

  transform: translateY(-50%);

  width: 5px;
  height: 60%;

  border-radius: 20px;

  background: linear-gradient(to bottom, #4ade80, #bbf7d0);

  box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
}

/* =========================
   OPTIONAL ICON STYLE
========================= */

.sidebar ul li i {
  width: 18px;

  text-align: center;

  font-size: 0.9rem;

  transition: 0.3s ease;
}

.sidebar ul li:hover i,
.sidebar ul li.active i {
  transform: scale(1.12);
}

/* =========================
   TABLET
========================= */

/* @media (max-width: 768px) {

  .sidebar {
    width: 220px;
  }

  .sidebar h2 {
    font-size: 1.3rem;
  }

  .sidebar ul li {
    padding: 0.85rem 0.9rem;

    font-size: 0.86rem;
  }
} */

/* =========================
   MOBILE
========================= */

/* @media (max-width: 450px) {

  .sidebar {
    transform: translateX(-100%);

    width: 230px;
  }

  .sidebar.open {
    transform: translateX(0);
  }
} */

/* CONTENT */
.dashboard .content {
  flex: 1;
  padding: 25px;
  margin-left: 250px;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.header h1 {
  font-size: 24px;
  color: #1f2937;
}

.header button {
  padding: 10px 16px;
  border: none;
  border-radius: 10px;
  background: #ef4444;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

.header button:hover {
  background: #dc2626;
}

/* CARDS */
.cards {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.card {
  flex: 1;
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.card h3 {
  font-size: 16px;
  color: #6b7280;
  margin-bottom: 10px;
}

.card p {
  font-size: 24px;
  font-weight: bold;
  color: #16a34a;
}

/* SECTION */
.section {
  background: white;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.section h2 {
  margin-bottom: 20px;
  color: #1f2937;
}

/* FORM USER */
.form-user {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.form-user input,
.form-user select {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  outline: none;
  transition: 0.2s;
}

.form-user input:focus,
.form-user select:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
  background: #fff;
}

.form-user button {
  padding: 12px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

.form-user button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(34, 197, 94, 0.3);
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

thead {
  background: #f3f4f6;
}

thead th {
  padding: 14px;
  text-align: left;
  font-size: 14px;
  color: #374151;
}

tbody td {
  padding: 14px;
  border-bottom: 1px solid #f1f5f9;
}

tbody tr:hover {
  background: #f9fafb;
}

/* BUTTON AKSI */
tbody button {
  padding: 6px 12px;
  border-radius: 8px;
  border: none;
  font-size: 13px;
  cursor: pointer;
}

tbody button:first-child {
  background: #3b82f6;
  color: white;
}

tbody button:last-child {
  background: #ef4444;
  color: white;
}

tbody button:hover {
  opacity: 0.85;
}

/* ================= SEARCH BOX ================= */
.search-box {
  width: 40%;
  margin: 20px 0;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 14px 20px;
  padding-left: 50px;

  border: 1px solid #dbe3ec;
  border-radius: 14px;

  font-size: 15px;
  font-weight: 500;

  background: #ffffff;

  outline: none;

  transition: all 0.3s ease;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* FOCUS EFFECT */
.search-box input:focus {
  border-color: #3b82f6;

  box-shadow:
    0 0 0 4px rgba(59, 130, 246, 0.15),
    0 8px 20px rgba(59, 130, 246, 0.1);

  transform: translateY(-2px);
}

/* PLACEHOLDER */
.search-box input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

/* ICON SEARCH */
.search-box::before {
  content: "🔍";

  position: absolute;

  left: 18px;
  top: 50%;

  transform: translateY(-50%);

  font-size: 18px;

  opacity: 0.6;
}

/* ================= MODAL ================= */

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);

  justify-content: center;
  align-items: center;

  animation: fadeIn 0.3s ease;
}

.modal-content {
  width: 90%;
  max-width: 600px;

  background: #fff;
  border-radius: 20px;

  padding: 25px;

  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);

  animation: slideUp 0.3s ease;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
  color: #111827;
}

.close {
  font-size: 28px;
  cursor: pointer;
  color: #6b7280;
}

.close:hover {
  color: red;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
  padding: 12px 15px;

  border: 1px solid #d1d5db;
  border-radius: 12px;

  font-size: 15px;
}

.modal-body textarea {
  resize: none;
  min-height: 100px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;

  margin-top: 25px;
}

.btn-batal {
  background: #e5e7eb;
  color: #111827;

  border: none;
  padding: 12px 18px;

  border-radius: 12px;
  cursor: pointer;
}

.btn-simpan {
  background: #16a34a;
  color: white;

  border: none;
  padding: 12px 18px;

  border-radius: 12px;
  cursor: pointer;
}

.btn-simpan:hover {
  background: #15803d;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}
/* ================= MODAL ================= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;

  background: rgba(0, 0, 0, 0.5);

  justify-content: center;
  align-items: center;

  backdrop-filter: blur(5px);
}

.modal-content {
  background: #fff;

  width: 90%;
  max-width: 500px;

  padding: 30px;

  border-radius: 20px;

  display: flex;
  flex-direction: column;
  gap: 15px;

  animation: popup 0.3s ease;
}

.modal-content h2 {
  margin-bottom: 10px;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
  padding: 12px;

  border-radius: 12px;

  border: 1px solid #ddd;

  outline: none;
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-actions button {
  flex: 1;
}

.btn-batal {
  background: crimson;
}

@keyframes popup {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================= LOADING SPINNER ================= */
.spinner-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

.spinner-overlay.active {
  display: flex;
}

.spinner {
  width: 52px;
  height: 52px;
  border: 6px solid #ffffff40;
  border-top-color: #16a34a;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.chart-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  max-width: 500px;
}

body.dark-mode {
  background: #0f172a;
  color: #e2e8f0;
}
body.dark-mode .sidebar,
body.dark-mode .section {
  background: #1e293b;
  color: #e2e8f0;
}
body.dark-mode .sidebar li:hover {
  background: #334155;
}
/* body.dark-mode .content {
  background: #0f172a; */
/* } */
/* body.dark-mode #usernameBaru,
body.dark-mode #passwordBaru {
  background: #1e293b;
} */
body.dark-mode .card {
  background: #1e293b;
  color: #e2e8f0;
}
body.dark-mode .chart-wrapper {
  background: #1e293b;
}
body.dark-mode table {
  background: #1e293b;
  color: #e2e8f0;
}
body.dark-mode th {
  background: #334155;
  color: #e2e8f0;
}
body.dark-mode tr:hover {
  background: #334155;
}
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background: #334155;
  color: #e2e8f0;
  border-color: #475569;
}
body.dark-mode .modal-content {
  background: #1e293b;
  color: #e2e8f0;
}
/* body.dark-mode button {
  background: #334155;
  color: #e2e8f0;
} */
.dark-togglee {
  margin-right: -38rem;
}

/* BADGE KATEGORI */
.badge-kategori {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.badge-kategori.ramadhan {
  background: #dcfce7;
  color: #16a34a;
}

.badge-kategori.qurban {
  background: #fef3c7;
  color: #d97706;
}
.digital-board {
  display: none;
}

.hero-clock-container {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* RESPONSIVE */

/* media queries *

/* laptop */
/* laptop */
@media (max-width: 1366) {
  html {
    font-size: 75%;
    height: 100%;
    margin: 0;
    max-width: 100%;
  }

  body {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* HAPUS overflow hidden dari dashboard */
  .dashboard {
    max-width: 100%;
  }

  /* HAPUS overflow hidden dari content */
  .dashboard .content {
    max-width: 100%;
  }
}

/* tablet */
@media (max-width: 768px) {
  .section {
    overflow: hidden;
  }

  .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-wrapper table {
    min-width: 700px;
  }

  .laporan-table-box {
    flex: 2;
    min-width: 0;
    width: 100%;
    overflow-x: auto;
  }

  .laporan-table-box table {
    min-width: 800px;
  }

  .event-table {
    border-collapse: collapse;
    width: 100%;
  }

  /* ===== NAVBAR ===== */
  .navbar {
    margin: 0.6rem 1rem;
    padding: 0.8rem 4%;
    border-radius: 2rem;
  }

  .navbar .navbar-nav {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 15rem;
    height: 100vh;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 20px 30px;
    gap: 4px;
    transition: right 0.3s ease;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 9998;
    border-radius: 1rem;
    display: block;
    overflow-y: auto;
    padding-top: 1rem;
    margin-right: -0.5;
  }

  body.dark-mode .navbar .navbar-nav {
    background: rgba(15, 23, 42, 0.97);
  }

  .navbar .navbar-nav.active {
    right: 0;
  }

  .navbar .navbar-nav a {
    width: 100%;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    color: #1e293b;
    display: block;
  }

  body.dark-mode .navbar .navbar-nav a {
    color: #e2e8f0;
  }

  .navbar .navbar-nav a:hover {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
  }

  /* Dropdown mobile */
  .dropdown-content {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: #f1f5f9;
    border-radius: 10px;
    padding: 5px 0 5px 10px;
    display: none;
    margin-top: 4px;
    min-width: unset;
  }

  body.dark-mode .dropdown-content {
    background: #1e293b;
  }

  .dropdown.active .dropdown-content {
    display: block;
  }

  .dropdown-content a {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    color: #334155;
  }

  .navbar-extra a {
    display: flex !important;
  }

  /* Overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9997;
    backdrop-filter: blur(2px);
  }

  .nav-overlay.active {
    display: block;
  }

  /* ===== HERO ===== */
  .hero {
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    gap: 0;
  }

  .hero .contentt {
    padding: 1.5rem 6%;
    max-width: 100%;
    padding-bottom: 10rem;
  }

  .hero .contentt h1 {
    font-size: 2.8rem;
    line-height: 1.15;
  }

  .hero .contentt p {
    font-size: 1rem;
    margin-top: 1rem;
  }

  .hero .contentt .cta {
    font-size: 1rem;
    padding: 0.8rem 2rem;
  }

  .hero .contentt .cta_second {
    font-size: 1rem;
    padding: 0.8rem 2rem;
    display: block;
    width: 52%;
  }

  /* Jam analog */
  .mosque-clock {
    margin-left: 0;
    margin-top: 2rem;
    justify-content: center;
    width: 100%;
    padding-bottom: 7rem;
  }

  .clock {
    width: 180px;
    height: 180px;
  }

  .hour {
    width: 5px;
    height: 45px;
  }
  .minute {
    width: 3px;
    height: 60px;
  }
  .second {
    width: 2px;
    height: 70px;
  }

  /* ===== QURAN QUOTE ===== */
  .quran-quote {
    padding: 3.5rem 1.5rem;
  }

  .quote-container {
    padding: 40px 30px;
    border-radius: 18px;
  }

  .quote-arab {
    font-size: 1.5rem;
    line-height: 2.2;
  }

  .quote-text {
    font-size: 1rem;
    line-height: 1.7;
  }

  .quote-mark {
    font-size: 3rem;
  }

  /* ===== ABOUT ===== */
  .aboutt {
    padding: 2.5rem 6%;
  }

  .aboutt h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  .aboutt .row {
    flex-direction: column;
    gap: 2rem;
  }

  .aboutt .row .about-img {
    flex: none;
    width: 100%;
  }

  .aboutt .row .about-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
  }

  .aboutt .row .content h3 {
    font-size: 1.7rem;
  }

  .aboutt .row .content p {
    font-size: 0.97rem;
  }

  /* ===== JADWAL SHOLAT HARIAN ===== */
  .jadwal {
    padding: 2rem 6%;
  }

  .jadwal h2 {
    font-size: 2rem;
  }

  .next-prayer-box h3 {
    font-size: 1.5rem;
  }

  #countdown {
    font-size: 1.6rem;
    padding: 10px 22px;
  }

  .jadwal-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .jadwal-card {
    padding: 18px 10px;
    border-radius: 16px;
  }

  .jadwal-card .icon {
    font-size: 1.6rem;
  }

  .jadwal-card h3 {
    font-size: 0.95rem;
  }

  .jadwal-card p {
    font-size: 1.1rem;
  }

  /* ===== LAYANAN ===== */
  .services {
    padding: 60px 6%;
  }

  .services h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
  }

  .service-container {
    gap: 25px;
  }

  /* .service-card {
    flex: 1 1 calc(50% - 25px);
  } */

  /* ===== CONTACT ===== */
  .contact {
    padding: 2.5rem 6%;
    /* padding-bottom: 1rem; */
  }

  .contact h2 {
    font-size: 2.2rem;
  }

  .contact .row {
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
    margin-bottom: 0;
  }

  .contact .map {
    max-height: 50px;
    border-radius: 24px;
  }

  .contact-wrapper {
    gap: 1.5rem;
    margin-bottom: 0;
  }

  .contact-info,
  .contact-form {
    padding: 1.8rem;
    border-radius: 24px;
    margin-bottom: 0;
  }

  footer {
    margin-top: 0;
    padding-top: 1rem;
  }

  /* ===== HERO SEJARAH / STRUKTUR ===== */
  .hero_sejarah,
  .hero_struktur {
    height: 25vh;
    border-bottom-left-radius: 60px;
    border-bottom-right-radius: 60px;
  }

  /* ===== TIMELINE (SEJARAH) ===== */
  #sejarah-masjid {
    padding: 3.5rem 1.5rem;
  }

  #sejarah-masjid h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-item {
    padding-left: 60px;
    margin-bottom: 45px;
  }

  .timeline-item::before {
    left: 4px;
    width: 16px;
    height: 16px;
  }

  .timeline-icon {
    width: 100px;
    height: 100px;
  }

  .timeline-content {
    padding: 1.4rem 1.6rem;
    border-radius: 14px;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
  }

  .timeline-content p {
    font-size: 0.93rem;
  }

  /* ===== EVENT QURBAN / RAMADHAN ===== */
  #event-qurban,
  #event-ramadhan {
    padding: 3.5rem 6%;
  }

  #event-qurban h2,
  #event-ramadhan h2 {
    font-size: 2.2rem;
  }

  /* ===== JADWAL SHOLAT BULANAN ===== */
  #jadwal-sholat {
    padding: 3rem 1.5rem;
  }

  #jadwal-sholat h2 {
    font-size: 2rem;
  }

  .sholat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* ===== STRUKTUR ===== */
  .struktur-masjid {
    padding: 3rem 2%;
  }

  .struktur-masjid h2 {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .struktur-level,
  .struktur-levell {
    gap: 1rem;
  }

  .struktur-level::before .struktur-card {
    width: 170px;
    padding: 1rem;
    border-radius: 16px;
  }

  .struktur-card img {
    width: 75px;
    height: 75px;
    border-width: 3px;
  }

  .struktur-card h3 {
    font-size: 0.95rem;
  }

  .struktur-card p {
    font-size: 0.8rem;
  }

  .struktur-level::before {
    width: 70%;
  }

  .struktur-levell::before {
    width: 88%;
    margin-left: 0.3rem;
  }

  .vertical-line,
  .verticall-line {
    height: 45px;
    padding-bottom: 1rem;
  }

  .login-card {
    padding: 2rem 1.5rem;
  }

  .search-box input {
    font-size: 14px;
    padding: 12px 16px;
    padding-left: 45px;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    backdrop-filter: blur(2px);
  }

  .sidebar-overlay.active {
    display: block;
  }

  /* ===== CONTENT ===== */
  .dashboard .content {
    margin-left: 0;
    padding: 12px;
    width: 100%;
  }

  /* ===== HEADER ===== */
  .header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    padding: 10px 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
  }

  body.dark-mode .header {
    background: #0f172a;
    border-color: #1e293b;
  }

  .header h1 {
    font-size: 16px;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header button {
    padding: 8px 12px;
    font-size: 12px;
    flex-shrink: 0;
  }

  .dark-togglee {
    margin-right: 0 !important;
    flex-shrink: 0;
  }

  /* Hamburger button */
  .hamburger-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: #16a34a;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    color: white;
    font-size: 18px;
    flex-shrink: 0;
  }

  /* ===== CARDS ===== */
  .cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
  }

  .card {
    padding: 14px 10px;
    border-radius: 12px;
  }

  .card h3 {
    font-size: 11px;
    margin-bottom: 6px;
  }

  .card p {
    font-size: 20px;
  }

  /* ===== CHART ===== */
  .chart-wrapper {
    max-width: 100%;
    padding: 14px;
    margin-bottom: 15px;
  }

  /* ===== SECTION ===== */
  .section {
    padding: 14px;
    border-radius: 12px;
    overflow: hidden;
  }

  .section h2 {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .section h3 {
    font-size: 14px;
  }

  /* ===== SEARCH BOX ===== */
  .search-box {
    width: 100%;
    margin: 10px 0;
  }

  .search-box input {
    font-size: 13px;
    padding: 10px 16px 10px 42px;
  }

  /* ===== FORM ===== */
  .form-user {
    flex-direction: column;
    gap: 8px;
  }

  .form-user input,
  .form-user select,
  .form-user button {
    width: 100%;
    font-size: 13px;
  }

  /* ===== TABEL - scroll horizontal khusus tabel ===== */
  .section {
    overflow: visible;
  }

  .table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 10px;
  }

  /* Wrap semua tabel di dalam section */
  .section > table,
  .section > .event-table,
  .event-table {
    min-width: 600px;
    width: 100%;
  }

  thead th {
    padding: 10px 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  tbody td {
    padding: 10px 8px;
    font-size: 12px;
    vertical-align: middle;
  }

  /* Foto di tabel lebih kecil */
  tbody td img {
    width: 50px !important;
    height: 40px !important;
    object-fit: cover;
  }

  /* Foto struktur */
  tbody td img[style*="border-radius: 50%"] {
    width: 50px !important;
    height: 50px !important;
  }

  /* ===== LAPORAN SECTION ===== */
  #section-laporan .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  #section-laporan > div[style*="flex"] {
    flex-direction: column !important;
  }

  #section-laporan .chart-wrapper {
    max-width: 100% !important;
    min-width: unset !important;
  }

  /* ===== MODAL ===== */
  .modal-content {
    width: 95%;
    padding: 18px;
    border-radius: 16px;
    max-height: 85vh;
    overflow-y: auto;
  }

  .scroll-down {
    margin-bottom: -3rem;
  }

  .login-card {
    max-width: 90%;
    padding: 2.5rem 2rem;
  }

  .hide-on-mobile {
    display: none !important;
  }
  .show-on-mobile {
    display: flex !important;
  }

  .mosque-clock {
    display: none;
  }
}

/* hp */
@media (max-width: 450px) {
  /* ===== NAVBAR ===== */
  .navbar {
    margin: 0.4rem 0.6rem;
    padding: 0.7rem 4%;
    border-radius: 1.5rem;
  }

  .navbar-logo {
    font-size: 1.3rem !important;
  }

  /* ===== HERO ===== */
  .hero .contentt h1 {
    font-size: 2.2rem;
  }

  .hero .contentt p {
    font-size: 0.93rem;
  }

  .hero .contentt .cta,
  .hero .contentt .cta_second {
    font-size: 0.9rem;
    padding: 0.75rem 1.6rem;
  }

  .mosque-clock {
    padding-bottom: 4rem;
  }

  .clock {
    width: 140px;
    height: 140px;
  }

  .hour {
    width: 5px;
    height: 32px;
  }
  .minute {
    width: 3px;
    height: 44px;
  }
  .second {
    width: 2px;
    height: 52px;
  }

  /* ===== QURAN QUOTE ===== */
  .quote-container {
    padding: 25px 16px;
  }

  .quote-arab {
    font-size: 1.2rem;
    line-height: 2;
  }

  .quote-text {
    font-size: 0.9rem;
  }

  /* ===== ABOUT ===== */
  .aboutt h2 {
    font-size: 1.8rem;
  }

  .aboutt .row .content h3 {
    font-size: 1.4rem;
  }

  /* ===== JADWAL HARIAN ===== */
  .jadwal-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  /* Card ke-5 (Isya) full width centered */
  .jadwal-card:last-child {
    grid-column: 1 / -1;
    max-width: 48%;
    margin: 0 auto;
  }

  .jadwal-card {
    padding: 14px 8px;
    border-radius: 14px;
  }

  .jadwal-card .icon {
    font-size: 1.4rem;
  }
  .jadwal-card h3 {
    font-size: 0.85rem;
  }
  .jadwal-card p {
    font-size: 0.95rem;
  }

  #countdown {
    font-size: 1.3rem;
    padding: 8px 16px;
  }

  /* ===== LAYANAN ===== */
  .services h2 {
    font-size: 1.8rem;
  }

  .service-card {
    flex: 1 1 100%;
  }

  /* ===== CONTACT ===== */
  .contact h2 {
    font-size: 1.8rem;
  }

  .contact .map {
    min-height: 220px;
  }

  /* ===== TIMELINE ===== */
  #sejarah-masjid h2 {
    font-size: 1.7rem;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-item {
    padding-left: 45px;
  }

  .timeline-icon {
    width: 75px;
    height: 75px;
  }

  .timeline-content h3 {
    font-size: 1rem;
  }

  .timeline-content p {
    font-size: 0.88rem;
  }

  /* ===== EVENT ===== */
  .qurban-grid,
  .event-grid {
    grid-template-columns: 1fr;
  }

  #event-qurban h2,
  #event-ramadhan h2 {
    font-size: 1.8rem;
  }

  /* ===== JADWAL BULANAN ===== */
  .sholat-grid {
    grid-template-columns: 1fr;
  }

  /* ===== STRUKTUR ===== */
  .struktur-masjid {
    padding: 2rem 1%;
  }

  .struktur-masjid h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  /* LEVEL */
  .struktur-level,
  .struktur-levell {
    gap: 0.5rem;
  }

  /* GARIS */
  .struktur-level::before {
    width: 80%;
    height: 3px;
    top: -18px;
  }

  .struktur-levell::before {
    width: 86%;
    height: 3px;
    top: -18px;
  }

  .vertical-line,
  .verticall-line {
    width: 3px;
    height: 35px;
    margin-top: -2rem;
  }

  /* CARD */
  .struktur-card {
    width: 95px;
    padding: 0.7rem;

    border-radius: 12px;
  }

  .struktur-card::before {
    width: 3px;
    height: 25px;
    top: -18px;
  }

  .struktur-card img {
    width: 50px;
    height: 50px;

    border-width: 2px;

    margin-bottom: 0.5rem;
  }

  .struktur-card h3 {
    font-size: 0.65rem;
    line-height: 1rem;
  }

  .struktur-card p {
    font-size: 0.58rem;
    line-height: 0.9rem;
  }

  .divisi-card {
    padding-top: 0.8rem;
  }
  .dashboard .content {
    padding: 8px;
  }

  /* ===== HEADER ===== */
  .header h1 {
    font-size: 13px;
  }

  .header button {
    padding: 7px 9px;
    font-size: 11px;
  }

  .hamburger-btn {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 16px;
  }

  /* ===== CARDS ===== */
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .card {
    padding: 10px 8px;
    border-radius: 10px;
  }

  .card h3 {
    font-size: 10px;
  }

  .card p {
    font-size: 18px;
  }

  /* ===== SECTION ===== */
  .section {
    padding: 10px;
  }

  .section h2 {
    font-size: 14px;
  }

  /* ===== TABEL ===== */
  thead th {
    padding: 8px 6px;
    font-size: 11px;
    white-space: nowrap;
  }

  tbody td {
    padding: 8px 6px;
    font-size: 11px;
  }

  tbody td img {
    width: 40px !important;
    height: 34px !important;
  }

  /* Tabel kegiatan min-width lebih lebar karena banyak kolom */
  .event-table {
    min-width: 550px;
  }

  /* ===== LAPORAN ===== */
  #section-laporan .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  #section-laporan .card h3 {
    font-size: 10px;
  }

  #section-laporan .card p {
    font-size: 16px;
  }

  /* ===== BADGE ===== */
  .badge-kategori {
    font-size: 10px;
    padding: 2px 7px;
  }

  /* ===== MODAL ===== */
  .modal-content {
    width: 98%;
    padding: 14px;
  }

  .login-container {
    padding: 1rem;
  }

  .login-card {
    padding: 2.2rem 1.4rem;

    border-radius: 26px;
  }

  .login-card h2 {
    font-size: 1.7rem;
  }

  .login-card input,
  .login-card button,
  .btn-kembali {
    font-size: 0.9rem;
  }
}

/* 1. Jika menu laporan sedang tampil, sembunyikan CARDS UTAMA dashboard */
body:has(#laporan:not([style*="display: none"])) .content > .cards,
body:has(#section-laporan:not([style*="display: none"])) .content > .cards {
  display: none !important;
}

/* 2. Jika menu laporan sedang tampil, sembunyikan CHART UTAMA dashboard */
body:has(#laporan:not([style*="display: none"])) .content > .chart-wrapper,
body:has(#section-laporan:not([style*="display: none"]))
  .content
  > .chart-wrapper {
  display: none !important;
}

/* ================= USER PROFILE SIDEBAR UTAMA ================= */
.sidebar {
  background-color: #0f172a; /* Warna slate gelap (lebih premium dari hitam pekat) */
  padding: 24px;
  color: #ffffff;
}

.sidebar h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 32px;
  color: #10b981; /* Hijau emerald khas aplikasi modern */
}

/* Container Profil */
.user-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  margin-bottom: 32px;
  backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.user-profile:hover {
  background: rgba(
    16,
    185,
    129,
    0.04
  ); /* Mengubah tint hover menjadi agak kehijauan */
  border-color: rgba(16, 185, 129, 0.25);
  transform: translateY(-2px); /* Efek melayang sedikit saat di-hover */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Avatar Wrapper */
.avatar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Lingkaran Avatar Mewah Bergradasi */
.avatar-fallback {
  width: 52px;
  height: 52px;
  /* Gradasi hijau toska ke emerald cerah */
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  border-radius: 14px; /* Sudut membulat squircle modern */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px; /* Ukuran ikon masjid disesuaikan agar pas */
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: transform 0.3s ease;
}

.user-profile:hover .avatar-fallback {
  transform: scale(1.05) rotate(5deg); /* Efek animasi mikro pada ikon saat card di-hover */
}

/* Indikator Status Online Aktif */
.status-indicator {
  position: absolute;
  bottom: -3px;
  right: -3px;
  width: 14px;
  height: 14px;
  background-color: #22c55e;
  border: 2.5px solid #0f172a; /* Menyesuaikan warna dasar sidebar */
  border-radius: 50%;
  z-index: 2;
}

.status-indicator.online::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #22c55e;
  border-radius: 50%;
  animation: pulseRipple 1.8s infinite ease-in-out;
  z-index: -1;
  top: 0;
  left: 0;
}

/* Detail Teks */
.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.role-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #34d399; /* Text hijau muda cerah agar kontras */
  letter-spacing: 1.2px;
}

#namaUser {
  font-size: 16px;
  font-weight: 600;
  color: #f8fafc;
  margin: 0;
  letter-spacing: 0.2px;
}

/* Animasi Denyut Lampu Online */
@keyframes pulseRipple {
  0% {
    transform: scale(0.9);
    opacity: 0.8;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}
