* {
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: Arial, sans-serif;
  text-align: center;
  background-color: #f4f4f4;
  position: relative;
}
.baby {
  position: fixed;
  top: 0;
  right: 0;
  width: 120px;
  height: 120px;
  border-bottom-left-radius: 100%;
  background: #000;
  color: #fff;
  font-weight: bold;
  font-size: 10px;
}
.baby span {
  font-size: 24px;
}
.baby div:first-child {
  padding-top: 20px;
}
.baby div {
  padding-left: 20px;
}

/* global floating elements start */
/* .password {
  position: absolute;
} */
/* global floating elements end */
.clock-wrapper {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}
.clock {
  font-size: 100px;
  font-weight: bold;
  background: #000;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  width: 480px;
  height: 240px;
}

.small-am-pm {
  font-size: 40%;
  position: absolute;
  right: 10px;
  bottom: 5px;
}
.date-group {
  margin-top: 50px;
  font-size: 24px;
  font-family: "Anek Bangla", sans-serif;
  /* margin-bottom: 50px; */
}
.date-group .date-title {
  font-weight: 600;
}
.date {
  margin-top: 20px;
  margin: -10px 0;
}
.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15vw; /* Increased font size for large screens */
  z-index: 9999;
}
/* timer style start */
#timerClock {
  margin-top: 20px;
  font-size: 80px;
  font-weight: bold;
  background: #000;
  color: #fff;
  display: inline-block;
  padding: 20px;
  border-radius: 10px;
  cursor: pointer;
  display: none; /* শুরুতে লুকিয়ে রাখার জন্য */
}

.timer.timer-fullscreen {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 100vh;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15vw;
  z-index: 9999;
}
.timerSection {
  /* margin-top: 30px; */
  padding-bottom: 20px;
}
h3.title {
  font-size: 32px;
  font-family: "Baumans", system-ui;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin: 0;
  padding: 16px 0;
}
.timer {
  font-weight: bold;
  padding: 6px 24px;
  margin: 12px 0;
  display: inline-block;
  font-size: 38px;
  cursor: pointer;
  border-radius: 5px;
  background: #000;
  color: #fff;
  min-width: 160px;
}
.timerSection input,
.timerSection button {
  font-size: 18px;
  cursor: pointer;
  font-family: "Baumans", system-ui;
}
.timerSection button {
  font-weight: bold;
  padding: 2px 16px;
  letter-spacing: 2px;
}
#timerType {
  margin-bottom: 10px;
  padding: 5px;
}
#fixedTimeInput,
#endTimeInputSection {
  margin-right: 10px;
}
.timerhandler {
  display: flex;
  justify-content: center;
}

/* timer style end */
/* stop watch start */
#stopwatch_container {
  font-size: 1.6rem;
  font-weight: bold;
  letter-spacing: 2px;
  display: inline-block;
  background: #e5e5e5;
  color: #000;
  padding: 8px 20px;
  margin-bottom: 14px;
  cursor: pointer;
}
.time-part {
  display: inline-block;
  padding: 5px 10px;
  cursor: pointer;
}
.milliseconds_stopwatch {
  min-width: 60px;
  text-align: left; /* Align value to the left */
  display: inline-block;
}
.btn_container {
  text-align: center;
}
.stopwatch_section button {
  font-size: 1.2rem;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  background: #000;
  border: none;
  color: #fff;
  font-weight: 700;
  font-family: "baumans", system-ui;
  letter-spacing: 2px;
}
/* stop watch full screen functionality */
._watch.fullscreen-mode {
  background-color: #000 !important; /* White background */
  width: 100vw;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  flex-direction: column;
  z-index: 9999;
  color: #fff !important;
}
._watch.fullscreen-mode #stopwatch_container {
  background: #000;
  color: #fff;
  font-size: 128px;
}
._watch.fullscreen-mode #stopwatch_container .milliseconds_stopwatch {
  min-width: 220px;
}
._watch.fullscreen-mode button {
  background: #fff;
  color: #000;
}

#closeFullscreenBtn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: red;
  color: white;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 5px;
}

/* stop watch end */
/* timer and stopwatch combine start */
/* For large devices */
.timer_stopwatch_container {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 860px;
  width: 90%;
  margin: 30px auto;
}

.timer_stopwatch_container .timerSection,
.timer_stopwatch_container .stopwatch_section {
  flex: 1;
  max-width: 420px;
  padding-top: 0 !important;
  border: 1px solid #000;
}

/* timer and stopwatch combine stop */
/* Quaran part start */
.popup-trigger-container {
  font-size: 24px;
  color: #e5e5e5;
  font-weight: bold;
  margin-top: 20px;
}
.popup-trigger-container .wrapper {
  padding: 10px 0;
}

.popup-trigger-container .wrapper span {
  font-family: "Anek Bangla", sans-serif;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  color: #000;
}
.popup-trigger-container .wrapper span::after {
  content: "|";
  padding: 0 10px;
  color: rgb(184, 184, 184);
  font-size: 24px;
  font-weight: 300;
}
.popup-trigger-container .wrapper span:last-of-type::after {
  content: "" !important;
  padding: 0;
}
/* Quaran part end */
/* Popup style start */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 9999;
  /* mhk__ */
}

.popup-content {
  position: relative;
  background: white;
  width: 850px;
  height: 85%;
  padding: 20px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  color: white;
  border: none;
  /* padding: 10px; */
  cursor: pointer;
  width: 30px;
  height: 30px;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 5px;
}

/* popup style end */

/* floating menu start */
.floating-menu-wrapper {
  display: block;
  position: fixed;
  top: 20px;
  right: 20px;
  font-family: "Baumans", system-ui;
}
.floating-menu-wrapper .floating-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.floating-menu-wrapper .floating-menu a {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-decoration: none;
  color: #000;
}
.floating-menu-wrapper .floating-menu span {
  font-size: 12px;
  display: inline-block;
  margin-top: 5px;
  font-weight: 300;
  transition: all linear 0.2s;
}
.floating-menu-wrapper .floating-menu .f-set:hover span {
  font-weight: 700;
}
.floating-menu-wrapper .floating-menu img {
  width: 30px;
  height: 30px;
}
/* floating menu end */

/* ── Mobile sticky header ── */
#mob-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9990;
  background: #111;
  color: #fff;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 46px;
}
.mob-title {
  font-family: "Baumans", system-ui;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
}
#mob-header a {
  text-decoration: none;
}
#mob-header a:hover,
#mob-header a:focus,
#mob-header a:active {
  text-decoration: none;
}

/* ── Mobile hamburger button ── */
#mob-menu-btn {
  display: flex;
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
#mob-menu-btn svg {
  width: 20px;
  height: 20px;
  color: #fff;
}

/* ── Desktop left column nav (items 7-12) ── */
#nav-left {
  display: none;
  top: 20px;
  left: 20px;
  right: auto;
}

/* ── Body offset when topbar is active ── */
body.has-topbar {
  padding-top: 60px;
}

/* ── Desktop top bar nav ── */
#nav-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9980;
  height: 60px;
  background: #f4f4f4;
  border-bottom: 1px solid #ddd;
  align-items: center;
  gap: 0;
  transition:
    background 0.25s,
    border-color 0.25s;
}
.mobile-full-nav-title {
  text-decoration: none;
}
.mobile-full-nav-title:hover,
.mobile-full-nav-title:active,
.mobile-full-nav-title:focus {
  text-decoration: none;
}
/* dark variant */
#nav-topbar.topbar-dark {
  background: #111;
  border-bottom: none;
}

#nav-topbar-track {
  flex: 1;
  display: flex;
  overflow: hidden;
  gap: 0;
}

#nav-topbar-prev,
#nav-topbar-next {
  display: none;
  background: #e0e0e0;
  border: none;
  color: rgba(0, 0, 0, 0.25);
  font-size: 28px;
  cursor: pointer;
  padding: 0 16px;
  line-height: 0;
  flex-shrink: 0;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  transition: background 0.25s;
}
#nav-topbar.topbar-dark #nav-topbar-prev,
#nav-topbar.topbar-dark #nav-topbar-next {
  background: #000;
}

.topbar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: #222;
  font-family: "Baumans", system-ui;
  font-size: 11px;
  padding: 0 14px;
  height: 60px;
  flex-shrink: 0;
  border-right: 1px solid #ddd;
  transition:
    background 0.15s,
    color 0.25s,
    border-color 0.25s;
}
.topbar-item:first-child {
  border-left: 1px solid #ddd;
}
.topbar-item img {
  width: 24px;
  height: 24px;
}
.topbar-item:hover {
  background: rgba(0, 0, 0, 0.06);
}

#nav-topbar.topbar-dark .topbar-item {
  color: #fff;
  border-right-color: rgba(255, 255, 255, 0.12);
}
#nav-topbar.topbar-dark .topbar-item:first-child {
  border-left-color: rgba(255, 255, 255, 0.12);
}
#nav-topbar.topbar-dark .topbar-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ── Theme toggle button (desktop only, fixed bottom-left) ── */
#topbar-theme-toggle {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 9970;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  line-height: 0;
  color: #555;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}
#topbar-theme-toggle.dark-mode {
  background: #222;
  border-color: #444;
  color: #ccc;
}
#topbar-theme-toggle:hover {
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

/* ── Separator between right-column desktop nav items ── */
#nav-right-list .f-set + .f-set::before {
  content: "";
  display: block;
  height: 1px;
  background: rgba(0, 0, 0, 0.15);
  margin: 2px 0;
}

/* ── Mobile full-screen nav panel ── */
#mob-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
}
#mob-nav.open {
  display: block;
}
#mob-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  background: #111;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  display: flex;
  flex-direction: column;
}
#mob-nav.open #mob-nav-panel {
  transform: translateX(0);
}
#mob-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  height: 46px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}
#mob-nav-header-title {
  font-family: "Baumans", system-ui;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #fff;
}
#mob-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #fff;
  line-height: 0;
  border-radius: 6px;
}
#mob-nav-close svg {
  width: 20px;
  height: 20px;
}
#mob-nav-links {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
}
.mob-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  text-decoration: none;
  color: #fff;
  font-family: "Baumans", system-ui;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.15s;
}
.mob-nav-item:active {
  background: rgba(255, 255, 255, 0.07);
}
.mob-nav-item img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   Unified slide-in sidebar navigation (replaces floating menus + topbar)
   ════════════════════════════════════════════════════════════════════════════ */

/* Menu open button — fixed corner, all screen sizes */
#nav-open-btn {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9990;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.15s;
}
#nav-open-btn:hover { background: #333; }
#nav-open-btn:active { transform: scale(0.94); }
#nav-open-btn svg { width: 22px; height: 22px; }

/* Drawer backdrop */
#side-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
}
#side-nav.open { display: block; }

/* Sliding panel — full height, from the right */
#side-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  max-width: 380px;
  background: #111;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
}
#side-nav.open #side-nav-panel { transform: translateX(0); }

/* Panel header */
#side-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 54px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
#side-nav-title {
  font-family: "Baumans", system-ui;
  font-size: 17px;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
}
#side-nav-title:hover { text-decoration: none; }
#side-nav-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 6px;
  line-height: 0;
  border-radius: 6px;
}
#side-nav-close svg { width: 20px; height: 20px; }

/* Search */
#side-nav-search-wrap {
  position: relative;
  padding: 14px 16px;
  flex-shrink: 0;
}
#side-nav-search-icon {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
}
#side-nav-search {
  width: 100%;
  padding: 11px 12px 11px 38px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
#side-nav-search::placeholder { color: rgba(255, 255, 255, 0.4); }
#side-nav-search:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.12);
}

/* List */
#side-nav-links {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  flex: 1;
  padding-bottom: 10px;
}
.side-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  text-decoration: none;
  color: #fff;
  font-family: "Baumans", system-ui;
  font-size: 15px;
  letter-spacing: 0.4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.15s;
}
.side-nav-item:hover { background: rgba(255, 255, 255, 0.07); }
.side-nav-item:active { background: rgba(255, 255, 255, 0.1); }
.side-nav-item img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  object-fit: contain;
}
#side-nav-empty {
  display: none;
  padding: 24px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}
