:root {
  --orange: #ff7e00;
  --nav-height: 7vh;
}

/* Ensure consistent layout across screen sizes */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

#body-wrapper {
  min-height: 100vh;
  padding-bottom: var(--nav-height);
}

#bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: #000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1050;
  border-top: 1px solid #333;
}

#bottom-nav a {
  flex: 1 1 0;
  text-align: center;
  font-size: 0.75rem;
  color: #fff;
  text-decoration: none;
  padding-top: 4px;
}

#bottom-nav a.active {
  color: var(--orange);
}

#bottom-nav i {
  font-size: 1.3rem;
  display: block;
}

#content-wrapper {
  padding: 1.5rem;
}

.page {
  height: 100%;
}

/* Overlay for modal or sidebar if needed */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 998;
  opacity: 0;
  transition: all 0.5s ease-in-out;
}

.overlay.active {
  display: block;
}

/* Submenu container */
.submenu-wrapper {
  position: relative;
  flex: 1 1 0;
  text-align: center;
}

.submenu-wrapper > a {
  font-size: 0.75rem;
  color: #fff;
  text-decoration: none;
  padding-top: 4px;
  display: block;
}

.submenu-wrapper > a i {
  font-size: 1.3rem;
  display: block;
}

/* Submenu itself */
.submenu {
  position: absolute;
  bottom: var(--nav-height);
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  border: 1px solid #333;
  border-radius: 5px;
  display: none;
  flex-direction: column;
  z-index: 1060;
  min-width: 120px;
}

.submenu a {
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-decoration: none;
  text-align: left;
  border-bottom: 1px solid #333;
}

.submenu a:last-child {
  border-bottom: none;
}

.submenu a:hover {
  background-color: #111;
  color: var(--orange);
}

/* Notification styles */

.notification-wrapper {
  position: relative;
}

.badge {
  position: absolute;
  top: 2px;
  right: 25%;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.6rem;
  font-weight: bold;
  z-index: 1080;
}

/* Notification dropdown override */
.notifications-dropdown {
  position: absolute;
  bottom: calc(var(--nav-height) + 8px); /* drop UP */
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  border: 1px solid #333;
  border-radius: 5px;
  display: none; /* default hidden */
  flex-direction: column;
  z-index: 1060;
  min-width: 180px;
  max-height: 250px;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.notifications-dropdown a {
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  text-decoration: none;
  text-align: left;
  border-bottom: 1px solid #333;
  white-space: normal;
}

.notification-toggle {
  cursor: pointer;
  font-size: 0.75rem;
  color: #fff;
  text-align: center;
  padding-top: 4px;
  display: block;
  position: relative;
}

.notification-toggle i {
  font-size: 1.3rem;
  display: block;
}

.notification-toggle .label {
  display: block;
  margin-top: -4px;
}

.notifications-dropdown a:last-child {
  border-bottom: none;
}

.notifications-dropdown a:hover {
  background-color: #111;
  color: var(--orange);
}

.notifications-dropdown {
  display: none;
}
.notifications-dropdown.active {
  display: flex;
}
