.top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background-color: #101010;
  padding: 5px 30px;
  font-size: 14px;
  border-bottom: 1px solid #101010;
  color: white;
  height: 38px;
  position:relative;
}

.sidebar {
  width: 70px;
  background-color: #101010;
  display: flex;
  flex-direction: column;
  padding: 5px;
}

.sidebar a {
  text-decoration: none;
  color: white;
  margin: 10px 0;
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 6px;
}

.sidebar a.active {
  background-color: #444;
  border-left: 4px solid #eaaa02;
  padding-left: 6px;
  font-weight: 500;
}

.sidebar a:hover {
  background-color: #333;
  border-radius: 6px;
}

.sidebar h1 {
  font-size: 20px;
  margin-bottom: 30px;
  text-align: center;
  font-family: "New Science", sans-serif;
}

.sidebar-icon,
.topbar-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

img.sidebar-icon {
  height: 22px;
  width: 22px;
  margin: 0;
}

.sidebar-section {
  width: 70px;
  border-bottom: 1px solid #444;
  border-radius: 6px;
}

.sidebar-section-header {
  font-size: 0.75rem;
  font-weight: normal;
  background-color: #101010;
  color: #fff;
  display: flex;
  align-items: center;
  border-radius: 6px;
  flex-direction: column;
  justify-content: center;
  width:70px;
  height: 70px;
}

.sidebar-section-header:hover {
  background-color: #2c2c2c;
}

.sidebar-subpages {
  display: none;
}

.sidebar-subpages a {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  color: #ccc;
  font-size: 10px;
  text-align: center;
}

.sidebar-subpages a.active {
  background-color: #444;
  color: #fff;
}

.sidebar-home {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  font-weight: normal;
  font-size: 0.75rem;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid #444;
  flex-direction: column;
}

.sidebar-home.active {
  background-color: #444;
}

.family-icon {
  width: 32px;
  height: 32px; /* optional if height isn't set */
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-button,
.topbar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-right: 10px;
  border-radius: 6px;
  background-color: transparent;
  transition: background 0.2s ease;
}

.calendar-button:hover,
.topbar-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.brand-logo {
  display: block;
  width: 30px !important;        /* fixed width to stay sharp in narrow layout */
  height: auto;       /* preserve aspect ratio */
  margin: 10px auto; 
}

/* Hide the profile menu by default */
.profile-menu {
  display: none;
  position: absolute;
  top: 50px; /* Adjust based on your design */
  right: 20px; /* Adjust as needed */
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 5px;
  z-index: 1000;
}

.profile-menu button {
  padding: 10px;
  background-color: #f44336; /* Red button */
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.profile-menu button:hover {
  background-color: #d32f2f; /* Darker red when hovered */
}

img.topbar-icon {
  width: 80%;
  height: 80%;
}

.profile-menu {
  display: none;
  position: absolute;
  top: 60px; /* adjust based on your top bar */
  right: 20px; /* adjust for alignment */
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}

.profile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.profile-menu-list li {
  border-bottom: 1px solid #eee;
}

.profile-menu-list li:last-child {
  border-bottom: none;
}

.profile-menu-list a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
}

.profile-menu-list a:hover {
  background-color: #f5f5f5;
}

.flash-container {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.flash-message {
  background-color: #31a46e;
  color: #ffffff;
  padding: 8px 30px;
  margin: 6px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 90%;
  pointer-events: auto;
  position: relative;
  font-weight: 500;
}

.flash-message .close-btn {
  position: absolute;
  right: 0px;
  bottom: 1px;
  cursor: pointer;
  font-weight: normal;
  background: none;
  border: none;
  font-size: 16px;
}

.notification-dropdown {
  position: absolute;
  top: 60px;
  right: 80px;
  background: white;
  border: 1px solid #ccc;
  width: 420px;
  max-height: 400px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
  z-index: 1000;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.notification-dropdown.hidden {
  display: none;
}

.notification-list {
  overflow-y: auto;
  max-height: 350px; /* adjust this based on how tall your footer/button is */
  padding: 10px;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid #eee;
}
.notification-item img {
  width: 24px;
  height: 24px;
}
.notification-item .text {
  flex: 1;
}
.notification-item .tag {
  font-weight: normal;
  margin-bottom: 5px;
  color: #101010
}

.notification-item .time {
  font-size: 0.75em;
  color: #999;
}

.notification-item .desc {
  display: none;
  color:#303030
}

.notification-badge {
  position: absolute;
  top: -2px;
  right: 2px;
  background-color: #eaa002;
  color: #101010;
  font-size: 10px;
  font-weight: normal;
  padding: 3px 5px;
  border-radius: 50%;
  line-height: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 22%;
}

.notification-badge.hidden {
  display: none;
}

.notification-footer {
  padding: 8px 10px 0px 10px;
  border-bottom: 1px solid #eee;
  background-color: #fff;
  text-align: right;
  margin-right: 10px;
}

.view-all-button {
  color: #bfbfbf;
  text-decoration: none;
  font-size: 14px;
  font-weight: 200;
}

.view-all-button:hover {
  color: #101010;
}

.notification-item.viewed {
  opacity: 0.4;
}

/* Priority colors */
.notification-item.priority-warning {
  border-left: 4px solid #eaaa02;
  background-color: rgba(234, 170, 2, 0.05);
}

.notification-item.priority-danger {
  border-left: 4px solid #d8000c;
  background-color: rgba(216, 0, 12, 0.05);
}

.notification-link-wrapper:hover .notification-item {
  background-color: #f3f3f3;
}

.centre-select-wrapper {
  margin-right: auto;
  width: 400px;
    transition: background 0.2s ease;
}

.centre-select {
  background-color: #101010;
  color: #ccc;
  padding: 6px 0;
  padding-left: 16px; /* indentation */
  border-radius: 6px;
  font-size: 0.75rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  max-width: 400px;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid #333;
}

.centre-select:focus {
  outline: none;
  border-left: 4px solid #eaaa02;
  background-color: #444;
}

.centre-select option {
  color:  #fff;
  padding-left: 16px; 
}

.centre-select-wrapper {
  position: relative;
}

.centre-select-wrapper::after {
  content: "▼";
  color: white;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 10px;
}
