/* Main Layout */
main .vh100 {
    min-height: 100vh;
}

/* Navbar Styles */
.navbar {
    background-color: #000000 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    margin-bottom: 25rem;
}

.navbar-brand {
    color: #ffffff !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-end {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Navigation Icon Buttons */
.nav-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2d2d2d;
    border: none;
    color: #ffffff;
    position: relative;
    margin: 0 0.25rem;
    transition: background-color 0.2s;
    font-size: 1.2rem;
}

.nav-icon-btn:hover {
    background-color: #3d3d3d;
}

.nav-icon-btn.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: default;
}

.nav-icon-btn.disabled .notification-badge {
    display: none !important;
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background-color: #f02849;
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.7rem;
    font-weight: bold;
}

/* Offcanvas Menu */
.offcanvas-header {
    border-bottom: 1px solid #e4e6eb;
}

.offcanvas-body {
    padding: 0;
}

.offcanvas-toggler {
    border: none;
    background: none;
    padding: 0;
}

.offcanvas-menu-item {
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #050505;
    transition: background-color 0.2s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}

.offcanvas-menu-item:hover {
    background-color: #f0f2f5;
}

.offcanvas-menu-item i {
    width: 36px;
    height: 36px;
    background-color: #e4e6eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.offcanvas-dropdown {
    background-color: #f0f2f5;
}

.offcanvas-dropdown .offcanvas-menu-item {
    padding-left: 4rem;
    font-size: 0.9rem;
}

/* Dropdown Menus */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    border: none;
    min-width: 300px;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item:hover {
    background-color: #f0f2f5;
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: 60px;
    right: 10px;
    width: 360px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1050;
}

.profile-dropdown.show {
    display: flex;
}

.profile-header,
span.profile-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e4e6eb;
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    transition: background-color 0.2s;
}

.profile-header:hover {
    background-color: #f0f2f5;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1877f2, #5b9bff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.profile-info1 {
    flex: 1;
}

.profile-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: #050505;
    margin: 0;
}

.profile-view {
    font-size: 0.85rem;
    color: #65676b;
    margin: 0;
}

.profile-menu-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: #050505;
    transition: background-color 0.2s;
    cursor: pointer;
}

.profile-menu-item:hover {
    background-color: #f0f2f5;
}

.profile-menu-item i {
    width: 36px;
    height: 36px;
    background-color: #e4e6eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.profile-divider {
    height: 1px;
    background-color: #e4e6eb;
    /* margin: 0.5rem 0; */
}

/* Theme Dropdown */
.theme-dropdown {
    position: absolute;
    top: 60px;
    right: 10px;
    width: 300px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1050;
}

.theme-dropdown.show {
    display: flex;
}

.theme-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e4e6eb;
}

.theme-header h6 {
    font-size: 1.2rem;
    font-weight: bold;
    color: #050505;
    margin: 0;
}

.theme-option {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.theme-option:hover {
    background-color: #f0f2f5;
}

.theme-option.active {
    background-color: #e7f3ff;
}

.theme-icon {
    width: 40px;
    height: 40px;
    background-color: #e4e6eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: black;
}

.theme-info {
    flex: 1;
}

.theme-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: #050505;
    margin: 0 0 0.2rem 0;
}

.theme-desc {
    font-size: 0.8rem;
    color: #65676b;
    margin: 0;
}

.theme-check {
    color: #1877f2;
    font-size: 1.2rem;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: 60px;
    right: 10px;
    width: 360px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 1050;
}

.notification-dropdown.show {
    display: flex;
}

.notification-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e4e6eb;
}

.notification-header h6 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #050505;
    margin: 0;
}

/* Notification List */
.notification-list {
    overflow-y: auto;
    max-height: 100vh;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.3s ease;
}

.notification-list::-webkit-scrollbar {
    width: 8px;
}

.notification-list::-webkit-scrollbar-track {
    background: transparent;
}

.notification-list::-webkit-scrollbar-thumb {
    background-color: transparent;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.notification-list:hover {
    scrollbar-color: rgba(0, 0, 0, 0.3) transparent;
}

.notification-list:hover::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
}

.notification-list:hover::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Notification Group */
.notification-group-header {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #050505;
    background-color: #f0f2f5; /*CHANGE THIS*/    
    border-top: 1px solid #e4e6eb;
}

.notification-group-header:first-child {
    border-top: none;
}

/* Notification Items */
.notification-item {
    display: flex;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #050505;
    position: relative;
    transition: background-color 0.2s;
    gap: 0.75rem;
    align-items: flex-start;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #f0f2f5;
}

.notification-item.unread {
    background-color: #e7f3ff;
}

.notification-item.unread:hover {
    background-color: #d9edff;
}

.notification-avatar {
    position: relative;
    flex-shrink: 0;
}

.notification-avatar img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

.notification-icon-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.7rem;
    border: 2px solid white;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-text {
    margin: 0 0 0.25rem 0;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.notification-time {
    font-size: 0.8rem;
    color: #65676b;
}

/* Notification Status Dots */
.process-dot {
    width: 12px;
    height: 12px;
    background-color: #1877f2;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.success-dot {
    width: 12px;
    height: 12px;
    background-color: #18f26c;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.decline-dot {
    width: 12px;
    height: 12px;
    background-color: #be3a3a;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

/* Notification Footer */
.notification-footer {
    padding: 0.5rem;
    border-top: 1px solid #e4e6eb;
    background-color: #fff;
}

.notification-footer a {
    color: #1877f2;
    text-decoration: none;
    padding: 0.5rem;
    font-weight: 500;
    display: block;
    text-align: center;
}

.notification-footer a:hover {
    background-color: #f0f2f5;
    border-radius: 4px;
}

/* Full Page Notifications */
.notifications-page-container {
    max-width: 680px;
    margin: 0 auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.notifications-page-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid #e4e6eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notifications-page-header h2 {
    font-size: 1.75rem;
    font-weight: bold;
    color: #050505;
    margin: 0;
}

.notifications-page-badge {
    background-color: #f02849;
    color: white;
    border-radius: 12px;
    padding: 4px 12px;
    font-size: 0.9rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-dropdown {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        max-height: calc(100vh - 60px);
        border-top: 1px solid #e4e6eb;
    }

    .notification-list {
        flex: 1;
    }

    .notification-footer {
        border-bottom: 1px solid #e4e6eb;
    }

    .profile-dropdown {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 60px);
        height: auto;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #e4e6eb;
        border-bottom: 1px solid #e4e6eb;
    }

    .theme-dropdown {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #e4e6eb;
        border-bottom: 1px solid #e4e6eb;
    }
}

/* Dark Mode Styles */
[data-bs-theme="dark"] .offcanvas {
    background-color: #1a1a1a;
    color: #ffffff;
}

[data-bs-theme="dark"] .offcanvas-header {
    border-bottom: 1px solid #3a3a3a;
}

[data-bs-theme="dark"] .offcanvas-title {
    color: #ffffff;
}

[data-bs-theme="dark"] .btn-close {
    filter: invert(1);
}

[data-bs-theme="dark"] .offcanvas-menu-item {
    color: #ffffff;
}

[data-bs-theme="dark"] .offcanvas-menu-item:hover {
    background-color: #2d2d2d;
}

[data-bs-theme="dark"] .offcanvas-menu-item i {
    background-color: #2d2d2d;
    color: #ffffff;
}

[data-bs-theme="dark"] .offcanvas-dropdown {
    background-color: #0d0d0d;
}

[data-bs-theme="dark"] hr {
    border-color: #3a3a3a;
}

[data-bs-theme="dark"] .notification-group-header {
    background-color: #242526;
    color: #e4e6eb;
    border-top: 1px solid #3a3a3a;
}

[data-bs-theme="dark"] .notification-dropdown {
    background-color: #242526;
}

[data-bs-theme="dark"] .notification-header {
    border-bottom: 1px solid #3a3a3a;
}

[data-bs-theme="dark"] .notification-header h6 {
    color: #e4e6eb;
}

[data-bs-theme="dark"] .notification-item {
    color: #e4e6eb;
}

[data-bs-theme="dark"] .notification-item:hover {
    background-color: #3a3b3c;
}

[data-bs-theme="dark"] .notification-item.unread {
    background-color: #263951;
}

[data-bs-theme="dark"] .notification-item.unread:hover {
    background-color: #2d4462;
}

[data-bs-theme="dark"] .notification-footer {
    background-color: #242526;
    border-top: 1px solid #3a3a3a;
}

[data-bs-theme="dark"] .notification-footer a:hover {
    background-color: #3a3b3c;
}

[data-bs-theme="dark"] .notifications-page-container {
    background-color: #242526;
}

[data-bs-theme="dark"] .notifications-page-header {
    border-bottom: 1px solid #3a3a3a;
}

[data-bs-theme="dark"] .notifications-page-header h2 {
    color: #e4e6eb;
}

[data-bs-theme="dark"] .notifications-page-badge {
    background-color: #f02849;
    color: white;
}