* {
    font-family: Poppins, sans-serif;
}
body {
    background-color: #eaf5ff;
}
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #dc3545;
    color: white;
    border-radius: 1rem;
    z-index: 1000;
}
.notification-popover {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    z-index: 1000;
    width: 200px;
    color: black;
}
.logo-container {
    position: relative;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

.logo-container:hover {
    opacity: 0.8;
}

#sidebar,
.sidebar-fixed {
    width: 250px;
}

.content-wrapper {
    /* margin-left: 6rem; */
    transition: margin-left 0.3s ease;
    min-height: 100vh;
    display: flex;
}

#sidebar .nav-link,
.sidebar .nav-link {
    transition: background-color 0.3s ease;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

#sidebar .nav-link:hover,
.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

#sidebar .nav-link.active,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
}

#sidebar .nav-link.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background-color: #ffffff;
    border-radius: 2px;
}

#sidebar .nav-link,
#sidebar .nav-link.active {
    width: 100%;
    box-sizing: border-box;
    padding-left: 0;
    padding-right: 0;
}

.notification-item {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.notification-item:last-child {
    border-bottom: none;
}

/* Existing styles */
.hidden {
    display: none;
}

#loading {
    text-align: right;
    white-space: nowrap;
}

.hero {
    background: #f4f4f4;
    padding: 50px 0;
    text-align: center;
}

.hero-image-container {
    position: relative;
    margin-top: 30px;
}

.hero-image {
    max-height: 300px;
    width: 100%;
    object-fit: cover;
}

.logo-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    opacity: 0.7;
    max-width: 100px;
}

.feature .card-img-top {
    height: 200px;
    object-fit: cover;
}

.cta {
    background: #007BFF;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .logo-overlay {
        max-width: 60px;
    }
}

/* Ensure this is at the end of the file */
#messageInput {
    resize: none;
    overflow: hidden;
    min-height: 38px;
    max-height: 150px;
}

.notification-summary {
    border-top: 1px solid #eee;
    padding: 10px;
    margin-top: 10px;
}

.notification-counts {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
}

.notification-counts span {
    margin-right: 15px;
}

.view-all-link {
    display: block;
    text-align: center;
    font-size: 0.9em;
    color: #007bff;
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* Notifications Carousel */
.notifications-cards {
    position: relative;
    height: 100%;
    min-height: 200px;
    max-height: 400px;
    overflow: hidden;
}

.notification-card {
    position: absolute;
    width: 100%;
    height: auto;
    min-height: 100px;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    transform: translateX(100%);
    background: white;
    padding: 1rem 3rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.notification-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

.notification-card.prev {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    z-index: 1;
}

.notification-card.next {
    opacity: 0;
    visibility: hidden;
    transform: translateX(100%);
    z-index: 1;
}

/* Navigation buttons */
.nav-prev,
.nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.nav-prev {
    left: 0.5rem;
}

.nav-next {
    right: 0.5rem;
}

.nav-prev:hover,
.nav-next:hover {
    background: rgba(255, 255, 255, 1) !important;
}

.nav-prev:disabled,
.nav-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Notifications Dropdown */
#notificationsDropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.5rem;
    background: none;
    border: none;
    color: inherit;
    transition: color 0.2s ease-in-out;
}

#notificationsDropdown:hover {
    color: var(--bs-primary);
}

#notificationsDropdown .badge {
    position: absolute;
    top: 0;
    right: 0;
    transform: translate(25%, -25%);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    min-width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dropdown-menu {
    margin-top: 0.5rem;
    padding: 0;
    min-width: 320px;
    max-width: 400px;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

/* Notification Cards */
.notification-card {
    border-bottom: 1px solid var(--bs-border-color);
}

.notification-card:last-child {
    border-bottom: none;
}

.notification-data {
    background-color: var(--bs-light);
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin: 0.5rem 0;
}

/* Notification Actions */
.btn-group .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

.btn-group .btn i {
    font-size: 1rem;
}

/* View All Link */
.notification-summary {
    background-color: var(--bs-light);
    border-top: 1px solid var(--bs-border-color);
    padding: 0.75rem;
    text-align: center;
}

.view-all-link {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 500;
}

.view-all-link:hover {
    text-decoration: underline;
}

@keyframes badge-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.badge-pulse {
    animation: badge-pulse 0.5s ease-in-out;
}

.nav-icon {
    font-size: 2rem;
}

.logo-img {
    width: 3.2rem;
}

/* Secondary Menu Layout */
.sidebar {
    min-height: 100vh;
    height: 100%;
    position: fixed;
    top: 0;
    left: 5rem; /* Aligns with the main sidebar */
    bottom: 0;
    padding-top: 0;
    background-color: #f8f9fa !important;
    border-right: 1px solid #dee2e6;
    z-index: 100;
    box-shadow: 1px 0 5px rgba(0, 0, 0, 0.05);
}

.sidebar .nav-link {
    color: #333;
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease-in-out;
}

.sidebar .nav-link:hover {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.05);
    border-left-color: rgba(13, 110, 253, 0.3);
}

.sidebar .nav-link.active {
    color: #0d6efd;
    background-color: rgba(13, 110, 253, 0.1);
    border-left-color: #0d6efd;
}

.sidebar .nav-link i {
    width: 1.25rem;
    text-align: center;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* Main content area when secondary menu is present */
.has-secondary-menu {
    margin-left: 0 !important;
    width: 100% !important;
    padding: 0 !important;
}

@media (max-width: 768px) {
    .sidebar {
        position: static;
        min-height: auto;
        margin-left: 5rem;
    }

    .has-secondary-menu {
        margin-left: 5rem;
        width: calc(100% - 5rem);
    }
}

/* Fix number precision */
.col-2 {
    flex: 0 0 16.6667%;
    max-width: 16.6667%;
}

/* Section header for secondary menu */
.menu-section-header {
  background-color: #339af0; /* Lighter blue */
  color: #fff;
  border-radius: 0.25rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

#recentConversationsColumn {
  position: fixed;
  width: 20rem;
  min-width: 200px;
  flex: none;
  transition: width 0.2s;
}

#secondarySidebar {
  position: fixed;
  left: 6rem; /* Aligns with #sidebar */
  top: 0;
  min-width: 150px;
  max-width: 400px;
  width: 20rem;
  height: 100vh;
  background: #f8f9fa;
  border-right: 1px solid #dee2e6;
  z-index: 1000;
  box-shadow: 1px 0 5px rgba(0, 0, 0, 0.05);
  padding: 4px;
}

#mainFlexContainer {
  display: block;
  height: 100vh;
}
#mainContentArea {
  padding: 2rem;
  min-width: 0;
  background: #eaf5ff;
  flex: 1 1 0%;
  height: 100vh;
  overflow: auto;
  position: relative;
  z-index: 1;
}

#sidebar {
    width: 6em;
}

#mainLayoutContainer {
    margin-left: 6em;
    width: auto;
    min-height: 100vh;
}

@media (max-width: 768px) {
  #mainLayoutContainer {
    margin-left: 0;
  }
}

#mainContent {
  margin-left: 20rem; /* Match the width of #secondarySidebar */
  transition: margin-left 0.2s;
}

@media (max-width: 768px) {
  #mainContent {
    margin-left: 0;
  }
}

body.has-secondary-sidebar #mainContent,
body[data-has-secondary-sidebar="true"] #mainContent {
  margin-left: 20rem;
}

body:not(.has-secondary-sidebar) #mainContent,
body[data-has-secondary-sidebar="false"] #mainContent {
  margin-left: 0;
}

@media (max-width: 768px) {
  #mainContent {
    margin-left: 0;
  }
}

.alert-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: auto;
    max-width: 90%;
}

.alert-container .alert {
    margin-bottom: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 12px 20px;
    font-weight: 500;
}
