.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.main-content {
    padding-top: 130px; /* Adjust based on navbar height */
}
.nav-link img {
    width: 24px;
    height: 24px;
}
.navbar-toggler {
    border: none;
    outline: none;
}
.secondary-nav {
    background-color: #343a40; /* Same as Bootstrap's bg-dark */
    color: white;
    padding: 10px 0;
    position: fixed;
    top: 56px; /* Adjust based on main navbar height */
    width: 100%;
    z-index: 999;
}
.secondary-nav .nav-link {
    color: white;
}

/* Custom styles for mobile navigation */
@media (max-width: 991.98px) {
    .navbar-collapse {
        text-align: right; /* Align text to the right */
    }
    .navbar-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }
    .navbar-nav .nav-item {
        margin-bottom: 20px; /* Add space between nav items vertically */
    }
    .navbar-nav .nav-item + .nav-item {
        margin-left: 0; /* Remove left margin between nav items */
    }
}

.secondary-nav {
    transition: transform 0.3s ease-in-out;
}

.secondary-nav.hidden {
    transform: translateY(-100%);
}

.notification-message {
    margin-top: 150px;
}

/* Common Styles */
.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 15px;
    transition: background-color 0.3s, border-color 0.3s;
}

.list-group-item h5 {
    font-weight: bold;
    margin: 0;
    flex: 1;
}

.list-group-item .message-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9rem;
    color: var(--info-color);
}

.list-group-item .message-info small {
    font-weight: bold;
    color: var(--secondary-color);
}

.list-group-item:hover {
    background-color: var(--hover-bg-color);
}

/* Light Mode Variables */
body:not(.dark-mode) {
    --border-color: #ddd;
    --secondary-color: #666;
    --info-color: #333;
    --hover-bg-color: #f8f9fa;
}

/* Dark Mode Variables */
body.dark-mode {
    --border-color: #333;
    --secondary-color: #ccc;
    --info-color: #ddd;
    --hover-bg-color: #2c2c2c;
}

.unread-message {
    background-color: #e8f0fe; /* Light blue background for unread messages */
    font-weight: bold;
}

.unread-message .message-info small {
    font-weight: bold;
    color: #1a73e8; /* Google blue for unread sender */
}

.custom-checkbox {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em; /* Make the text bigger */
}
.custom-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.form-group {
    margin-bottom: 1rem;
}

.full-width {
    width: 100%;
}

/* Custom styles for Select2 in light mode */
.select2-container--default .select2-selection--multiple.light {
    background-color: #fff;
    color: #000;
    border: 1px solid #ccc;
}

.select2-container--default .select2-selection--multiple.light .select2-selection__choice {
    background-color: #eee;
    border: 1px solid #ccc;
    color: #000;
}

.select2-container--default .select2-selection--multiple.light .select2-selection__choice__remove {
    color: #000;
}

.select2-container--default .select2-selection--multiple.light .select2-search__field {
    background-color: #fff;
    color: #000;
}

.select2-container--default .select2-selection--multiple.light .select2-search--inline .select2-search__field {
    background-color: #fff;
    color: #000;
}

.select2-container--default .select2-selection--multiple.light .select2-selection__rendered li {
    color: #000;
}

/* Custom styles for Select2 in dark mode */
.select2-container--default .select2-selection--multiple.dark {
    background-color: #333;
    color: #fff;
    border: 1px solid #444;
}

.select2-container--default .select2-selection--multiple.dark .select2-selection__choice {
    background-color: #444;
    border: 1px solid #555;
    color: #fff;
}

.select2-container--default .select2-selection--multiple.dark .select2-selection__choice__remove {
    color: #fff;
}

.select2-container--default .select2-selection--multiple.dark .select2-search__field {
    background-color: #333;
    color: #fff;
}

.select2-container--default .select2-selection--multiple.dark .select2-search--inline .select2-search__field {
    background-color: #333;
    color: #fff;
}

.select2-container--default .select2-selection--multiple.dark .select2-selection__rendered li {
    color: #fff;
}