.text-left-not-xs, .text-left-not-sm, .text-left-not-md, .text-left-not-lg {
  text-align: left;
}
.text-center-not-xs, .text-center-not-sm, .text-center-not-md, .text-center-not-lg {
  text-align: center;
}
.text-right-not-xs, .text-right-not-sm, .text-right-not-md, .text-right-not-lg {
  text-align: right;
}
.text-justify-not-xs, .text-justify-not-sm, .text-justify-not-md, .text-justify-not-lg {
  text-align: justify;
}

@media (max-width: 767px) {
  .text-left-not-xs, .text-center-not-xs, .text-right-not-xs, .text-justify-not-xs {
      text-align: inherit;
  }
  .text-left-xs {
      text-align: left;
  }
  .text-center-xs {
      text-align: center;
  }
  .text-right-xs {
      text-align: right;
  }
  .text-justify-xs {
      text-align: justify;
  }
}
@media (min-width: 768px) and (max-width: 991px) {
  .text-left-not-sm, .text-center-not-sm, .text-right-not-sm, .text-justify-not-sm {
      text-align: inherit;
  }
  .text-left-sm {
      text-align: left;
  }
  .text-center-sm {
      text-align: center;
  }
  .text-right-sm {
      text-align: right;
  }
  .text-justify-sm {
      text-align: justify;
  }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .text-left-not-md, .text-center-not-md, .text-right-not-md, .text-justify-not-md {
      text-align: inherit;
  }
  .text-left-md {
      text-align: left;
  }
  .text-center-md {
      text-align: center;
  }
  .text-right-md {
      text-align: right;
  }
  .text-justify-md {
      text-align: justify;
  }
}
@media (min-width: 1200px) {
  .text-left-not-lg, .text-center-not-lg, .text-right-not-lg, .text-justify-not-lg {
      text-align: inherit;
  }
  .text-left-lg {
      text-align: left;
  }
  .text-center-lg {
      text-align: center;
  }
  .text-right-lg {
      text-align: right;
  }
  .text-justify-lg {
      text-align: justify;
  }
}

/* ===== Fixed Header & Sidebar Overrides ===== */
:root {
  --sidebar-width: 14rem; /* SB Admin 2 default */
  --topbar-height: 4.375rem; /* ~70px */
}

/* Fix the sidebar so it doesn’t scroll with body */
.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  overflow-y: auto;
  z-index: 1030;
  /* Hide scrollbar cross-browser while allowing scroll */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none;    /* Firefox */
}


/* WebKit browsers */
.sidebar::-webkit-scrollbar { display: none; }

/* 3D login texture applied to sidebar */
.sidebar.sidebar-dark {
  background: linear-gradient(135deg, rgba(78,115,223,0.25) 0%, rgba(28,200,138,0.25) 100%),
              linear-gradient(135deg, #0f172a 0%, #0b1020 100%);
}

/* Shift content wrapper to the right of the fixed sidebar */
#wrapper {
  padding-left: var(--sidebar-width);
}

/* Fix the topbar */
.topbar {
  position: fixed !important;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  z-index: 1040;
}

/* Prevent content from hiding under the fixed topbar */
#content {
  padding-top: var(--topbar-height);
}

/* Ensure full height for content wrapper */
#content-wrapper {
  min-height: 100vh;
}

/* Handle sidebar toggle (mobile / collapsed) */
.sidebar.toggled {
  left: -14rem;
}
#wrapper.toggled {
  padding-left: 0;
}
@media (max-width: 768px) {
  #wrapper { padding-left: 0; }
  .topbar { left: 0; }
}

/* ===== Clock Section: Default and Responsive ===== */
.clock-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 0;
}

/* Center digital clock text globally */
#localClock,
#localDate {
  text-align: center;
}

@media (min-width: 992px) {
  .clock-section { gap: 24px; }
}

@media (max-width: 991px) {
  .clock-section {
    gap: 16px;
  }

  #analogClock {
    width: 230px !important;
    height: 230px !important;
  }

  #localClock {
    font-size: 28px !important;
  }

  #localDate {
    font-size: 14px !important;
    padding-right: 0 !important;
  }
}

/* ===== Calendar: Responsive Container and Typography ===== */
.calendar-container {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .calendar-container {
    max-width: 100%;
    padding: 8px;
  }
  .calendar-header { padding: 6px; }
  .calendar-header .month { font-size: 1rem; }
  .calendar-days div,
  .calendar-dates div { font-size: 0.9rem; }
}
