/* Bootstrap's bg-dark color reference: #212529 */
/* Bootstrap's bg-light color reference: #f8f9fa */

/* Red separator line between navbars */
.nav-style::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  right: 0;
  height: 3px;
  background-color: rgb(177, 25, 25);
}

/* Role Menu Header Styles - Matches Bootstrap navbar-light bg-light styling */
.role-menu-header {
  background-color: #f8f9fa;
  padding: 0;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  z-index: 9;
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  height: 54px;
  display: flex;
  align-items: center;
  overflow: visible;
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.role-menu-container {
  display: flex;
  gap: 0;
  align-items: center;
  padding: 0 8px;
  margin: 0;
  flex-wrap: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.role-menu-item {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 0;
  box-sizing: border-box;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0;
  margin: 0 8px 0 0;
  height: 54px;
}

.role-menu-item:last-child {
  margin-right: 0;
}

.role-menu-item:has(.menu-toggle-btn[aria-expanded="true"]) {
  background-color: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

.menu-toggle-btn {
  background-color: #f8f9fa;
  color: rgba(0, 0, 0, 0.65);
  border: none;
  padding: 11px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
  height: 100%;
  border-right: none;
  border-radius: 4px 0 0 4px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.menu-toggle-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.9);
}

.menu-toggle-btn:focus {
  outline: none;
}

.menu-toggle-btn[aria-expanded="true"] {
  background-color: rgba(0, 0, 0, 0.05);
  color: rgba(0, 0, 0, 0.9);
  border-bottom: 2px solid rgb(177, 25, 25);
}

.menu-toggle-btn[aria-expanded="true"] .menu-icon {
  transform: rotate(135deg);
}

.menu-icon {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid rgba(0, 0, 0, 0.55);
  border-bottom: 2px solid rgba(0, 0, 0, 0.55);
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
  opacity: 0.75;
  margin-left: 4px;
}

.menu-toggle-btn:hover .menu-icon {
  opacity: 1;
  border-right-color: rgba(0, 0, 0, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.9);
}

.menu-label {
  display: inline-block;
  font-weight: 500;
}

.menu-submenu {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  background-color: transparent;
  border: none;
  box-shadow: none;
  min-width: 0;
  max-width: 0;
  max-height: 54px;
  overflow: hidden;
  z-index: auto;
  position: relative;
  top: auto;
  left: auto;
  box-sizing: border-box;
  opacity: 0;
  transition: max-width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.3s ease,
              visibility 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  flex-shrink: 0;
}

.menu-submenu.show {
  max-width: calc(100vw - var(--submenu-left, 0px) - 16px);
  opacity: 1;
  visibility: visible;
}

.menu-submenu-item {
    color: rgba(0, 0, 0, 0.65);
    padding: 11px 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    height: 54px;
    white-space: nowrap;
    box-sizing: border-box;
    flex: 0 0 auto;
}

/* Manager menu - vertical dropdown layout */
#manager-menu {
  flex-direction: column;
  background-color: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border-radius: 6px;
  max-height: 0;
  overflow: auto;
  position: absolute;
  top: 54px;
  left: 0;
}

#manager-menu.show {
  max-width: 250px;
  max-height: calc(100vh - 110px - 54px);
}

#manager-menu .menu-submenu-item {
  width: 100%;
  height: auto;
  padding: 12px 16px;
  justify-content: flex-start;
  border-right: none;
  border-bottom: none;
  border-left: 3px solid transparent;
  min-width: 0;
}

#manager-menu .menu-submenu-item:last-child {
  border-right: none;
  border-radius: 0;
}

#manager-menu .menu-submenu-item:hover {
  border-left-color: rgb(177, 25, 25);
  border-bottom-color: transparent;
}

#manager-menu .menu-submenu-item.active {
  border-left-color: rgb(177, 25, 25);
  border-bottom-color: transparent;
}

.event-cards-grid {
display: flex;
flex-wrap: wrap;
gap: 1.5rem;
justify-content: center;
}

.event-card-wrapper {
width: 320px;
flex-shrink: 0;
}

.event-card-wrapper .card {
    height: 100%;
}

.event-cards-carousel {
    display: flex;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
}

.event-cards-carousel .carousel-inner {
    width: 100%;
    max-width: 600px;
    display: flex;
    overflow: visible;
    position: relative;
}

.event-cards-carousel .carousel-item {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    min-width: 100%;
    position: absolute;
    opacity: 0;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
    z-index: 0;
    pointer-events: none;
    left: 0;
}

.event-cards-carousel .carousel-item.carousel-item-prev {
    position: relative;
    opacity: 0.35;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: auto;
}

.event-cards-carousel .carousel-item.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
    pointer-events: auto;
}

.event-cards-carousel .carousel-item.carousel-item-next {
    position: relative;
    opacity: 0.35;
    transform: translateX(50%);
    z-index: 0;
    pointer-events: auto;
}

.event-cards-carousel .card {
    width: 100%;
    max-width: 500px;
}

/* Adjust body padding for navbar + role menu header */
body {
  padding-top: 110px;
  overflow-x: hidden;
}

/* Existing styles */
.body-style {
  background-color: rgb(230, 230, 230);
  color: #333;
}


.welcome-img {
    max-width: 80%;
}

.event-banner {
  width: 25%;
}

.section {
    justify-self: center;
    width: 85%
}
.section hr {
    color: rgb(177, 25, 25);
    line-height: 2%;
    width: 100%;
}

.what-we-do {
  margin-left: 5%;
  color: black;
  margin-top: 5%;
  width: 100%;
}

.what-we-do h2 {
  width: 30%;
}

.what-we-do p {
  width: 30%;
  margin-bottom: 5%;
}

.what-we-do img {
  width: 35%;
  margin-left: 45%;
  margin-top: -35%;
  border-radius: 2%;
  position: absolute;
}

.home-style-video {
  top: 0%;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.1;
  pointer-events: none;
  position: absolute;
}

.home-style-login-button {
  background-color: rgb(205, 0, 0);
  color: white;
}

.home-style-events-button {
  background-color: rgb(151, 0, 0);
  color: white;
}

.footer-style {
  text-align: center;
  margin: auto;
  margin-top: 15%;
  background-color: #2d2d2d;
  color: white;
  padding:2.5%;
  margin-bottom:-5%;
}

.nav-style {
  width: 100%;
  position: fixed;
  z-index: 1;
}

.text-white-style {
  color: black;
  
}

.fade-scroll {
  opacity: 1;
  transition: opacity 0.6s ease;
}

.fade-scroll.fade-out {
  opacity: 0;
}

.footer-style a:hover {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-style .fab:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.register {
    display:flex;
    justify-content:center;
    color:black;
    margin:auto;
}

.register h1{
    float:left;
    justify-content:left;
}

.register div {
    width: 100%;
}

.events {

}

.text-center{
    text-align:center;
}

.events img{
    margin-bottom:5%;
}

.events-img{
    border-radius:15px;
    width:90%;
}


.notification-bell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    width: 2.5rem;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background-color: #fff;
    margin-right: 10px;
}

    .notification-bell-btn img {
        width: 80%;
        height: 80%;
        display: block;
        object-fit: contain;
    }


    .notification-bell-btn:hover {
        color: #007bff;
    }

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

.notification-panel {
    display: none;
    position: fixed;  /* Changed from absolute */
    top: auto;
    right: 20px;     /* Add some padding from edge */
    width: 400px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    max-height: 500px;
    overflow-y: auto;
    margin-top: 0;
}

    .notification-panel.show {
        display: block;
        top: 120px;  /* Position below navbar (adjust if needed) */
    }

.notification-panel-header {
    padding: 15px;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    background-color: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-panel-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.notification-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    background-color: #f8f9fa;
}

.notification-tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    background-color: #f8f9fa;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

    .notification-tab.active {
        border-bottom-color: #007bff;
        background-color: white;
        font-weight: bold;
    }

    .notification-tab:hover {
        background-color: #e9ecef;
    }

.notification-content {
    padding: 10px 0;
}

.notification-item {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    gap: 10px;
}

    .notification-item:hover {
        background-color: #f8f9fa;
    }

    .notification-item.unread {
        background-color: #f0f4ff;
    }

.notification-icon {
    flex-shrink: 0;
    font-size: 1.5rem;
    min-width: 30px;
    text-align: center;
}

.notification-body {
    flex: 1;
}

.notification-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.notification-message {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 0.8rem;
    color: #999;
}

.notification-empty {
    padding: 30px 15px;
    text-align: center;
    color: #999;
}

.notification-container {
    position: relative;
    display: inline-block;
    z-index: 1050; 

}

.account-status {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background-color: #fff;
    padding: 0px 4px 0px 4px;
}

.error-template {
    padding: 40px 15px;
}

    .error-template h1 {
        font-size: 150px;
        line-height: 1;
        margin-bottom: 20px;
    }

.error-details {
    font-size: 18px;
}

.error-actions {
    margin-top: 30px;
}