
/* Notification Styles */
.navbar-notifi {
    display: flex;
    flex-wrap: wrap;
    padding: 15px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background-color: #fff;
}

.navbar-notifi:hover {
    background-color: #f7f7f7;
}

.navbar-notifi__left {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
    background-color: rgba(var(--base-rgb), 0.1); /* Fallback */
    background-color: hsl(var(--base) / 0.1);
}

.navbar-notifi__left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-notifi__right {
    width: calc(100% - 40px);
    padding-left: 15px;
}

.navbar-notifi__right .notifi__title {
    font-weight: 600;
    font-size: 14px;
    color: hsl(var(--heading-color));
    margin-bottom: 5px;
    display: block;
}

.navbar-notifi__right .time {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
}

.navbar-notifi__right .time i {
    margin-right: 5px;
    font-size: 11px;
}

/* Badge Pulse Animation */
.new-not {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 8px;
    height: 8px;
    background-color: #ff4d4d;
    border-radius: 50%;
    border: 1px solid #fff;
}

.new-not.white {
    border-color: #fff;
}

/* Bell Button Styling - Force Visibility */
button.primary--layer {
    background: transparent;
    border: none;
    position: relative;
    padding: 0 10px;
    color: #333; /* Default dark color */
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

button.primary--layer i {
    font-size: 24px;
    color: #555; /* Dark grey icon */
    transition: all 0.3s;
}

button.primary--layer:hover {
    background-color: rgba(0,0,0,0.05); /* Light grey background on hover */
}

button.primary--layer:hover i {
    color: hsl(var(--base)); /* Primary color on hover */
}

/* Dropdown Menu Overrides */
.dropdown-menu--md {
    min-width: 320px;
    padding: 0;
    border: none;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border-radius: 8px;
    background-color: #fff !important; /* Force white background */
}

.dropdown-menu__header {
    padding: 15px 20px;
    background-color: hsl(var(--base));
    color: #fff;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-menu__header .caption {
    font-weight: 600;
    font-size: 15px;
    color: #fff !important;
}

.dropdown-menu__header p {
    font-size: 12px;
    margin: 0;
    opacity: 0.9;
    color: #fff !important;
}

.dropdown-menu__body {
    max-height: 350px;
    overflow-y: auto;
    background-color: #fff;
}

.dropdown-menu__item {
    display: block;
    text-decoration: none;
}

.dropdown-menu__footer {
    padding: 10px;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    background-color: #fff;
    border-radius: 0 0 8px 8px;
}

.view-all-message {
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--base));
    text-decoration: none;
    display: block;
}

.view-all-message:hover {
    text-decoration: underline;
    color: hsl(var(--base));
}

/* Mobile Header Adjustments */
@media screen and (max-width: 991px) {
    .navbar-wrapper .navbar__right {
        margin-left: auto; /* Push to right */
    }
    
    .navbar__action-list {
        margin-right: 0;
        justify-content: flex-end;
    }
    
    /* Ensure profile dropdown is positioned correctly on mobile */
    .dropdown-menu--sm {
        right: 0;
        left: auto;
    }
    
    /* Fix Notification Dropdown Width on Mobile */
    .dropdown-menu--md {
        min-width: 280px;
        width: 300px;
        max-width: 90vw;
        right: -60px !important; /* Adjust position relative to bell */
        left: auto !important;
    }
}

/* Fix Notification Page Table Colors (Light Mode) */
.custom-table {
    background-color: #fff !important;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}

.custom-table thead tr th {
    background-color: hsl(var(--base)) !important;
    color: #fff !important;
    border: none;
}

.custom-table tbody {
    background-color: #fff !important;
}

.custom-table tbody tr td {
    color: #555 !important;
    border-bottom: 1px solid #eee !important;
    background-color: #fff !important;
}

.custom-table tbody tr:nth-child(even) td {
    background-color: #f9f9f9 !important;
}

.custom-table tbody tr:hover td {
    background-color: #f0f0f0 !important;
}
