﻿.main-header {
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    z-index: 1001;
}

.custom-navbar {
    width: 100%;
    padding: 10px 15px;
    background-color: #ffff;
    height: 80px;
}

    .custom-navbar .navbar-container-fluid {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

.custom-navbar-header-right {
    list-style: none;
    padding: 0px 5px;
    margin-bottom: 0px;
    display: flex;
    flex-direction: row;
    gap: 5px;
}

    .custom-navbar-header-right .custom-nav-item .profile-pic {
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #000;
    }

        .custom-navbar-header-right .custom-nav-item .profile-pic .avatar-sm {
            width: 3.5em;
            height: 3.5em;
        }

        .custom-navbar-header-right .custom-nav-item .profile-pic .profile-username {
            padding-right: 8px;
            cursor: default;
        }

.avatar-img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.rounded-circle {
    border-radius: 50% !important;
}

.profile-pic span {
    /*font-size: 1rem;*/
}

.op-7 {
    opacity: .7 !important;
}

.fw-bold {
    font-weight: 600 !important;
}

/*.custom-navbar-header-right:has(:hover) {
    background-color: #ebebeb;
}*/
.custom-nav-item {
    padding: 0px 5px;
}
.custom-nav-item:has(:hover) {
    background-color: #ebebeb;
}
.custom-nav-item.show{
    background-color: #ebebeb;
}


@media (max-width: 600px) {
    .custom-nav-item .profile-username {
        display: none;
    }
}
.custom-nav-item.show .custom-popover{
    display: block !important;
}
.custom-popover {
    display: none;
    position: absolute;
    top: 79px;
    right: 13px;
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 0px 36px rgba(0, 0, 0, 0.25);
    max-width: 280px;
    text-align: center;
    z-index: 10;
}

    .custom-popover::before {
        content: "";
        position: absolute;
        bottom: 100%;
        right: 10px;
        border-width: 8px;
        border-style: solid;
        border-color: transparent transparent white transparent;
    }
#notifDropdown .custom-popover::before {
    bottom: 0%;
}
#notifDropdown .custom-popover {
    right: 200px;
}
@media (max-width: 600px) {
    #notifDropdown .custom-popover {
        right: 85px;
    }
}
    .user-box {
    display: flex;
    /*padding: .25rem 1rem;*/
    /*height: 77px;*/
}

.avatar-lg {
    /*width: 3.95rem;*/
    /*height: 5rem;*/
}

    .avatar-lg .rounded {
        border-radius: 8px !important;
    }

.user-box .u-text {
    padding: 0 10px;
    text-align: left;
    text-wrap-mode: wrap;
}

.dropdown-divider {
    height: 0;
    margin: 0.3rem !important;
    overflow: hidden;
    border-top: 1px solid rgba(0,0,0,0.175);
    opacity: 1;
}


.custom-dropdown-item {
    display: block;
    width: 100%;
    padding: 0.45rem 1rem !important;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    font-size: 13px;
}

.custom-popover .custom-dropdown-menu {
    padding: 0;
}

    .custom-popover .custom-dropdown-menu li {
        list-style: none;
    }

.custom-profile-btn {
    display: none;
    flex-wrap: nowrap;
    justify-content: space-between;
}

    .custom-profile-btn span {
        margin: 1px;
    }

.custom-dropdown-item:hover {
    text-decoration-line: unset !important;
    background-color: #ebebeb !important;
}
#notifDropdown .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: unset;
    height: 44px;
    width: 44px;
    text-decoration: none;
}
    #notifDropdown .nav-link i {
        font-size: 16px;
        vertical-align: middle;
        line-height: 1 !important;
        color: #8a95a0;
    }
    #notifDropdown .nav-link .notification {
        position: absolute;
        background-color: #31ce36;
        text-align: center;
        border-radius: 10px;
        min-width: 17px;
        height: 17px;
        font-size: 10px;
        color: #fff;
        font-weight: 300;
        line-height: 17px;
        /*top: 19px;
        right: 207px;*/
        margin-left: 23px;
        margin-bottom: 25px;
        letter-spacing: -1px;
    }
/*@media (max-width: 600px) {
    #notifDropdown .nav-link .notification {
        right: 92px;
    }
}*/
/* Dropdown container */
.dropdown-menu-notification.notif-box {
    /*width: 320px;*/
    padding: 0;
    border: none;
    /*border-radius: 10px;*/
    /*box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);*/
    background-color: #fff;
    overflow: hidden;
}

/* Title bar */
.dropdown-title {
    font-weight: bold;
    padding: 4px 0px 9px 0px;
    font-size: 15px;
    color: #2a2f5b;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

/* Notification scroll area */
.notif-scroll {
    max-height: 300px;
    overflow-y: auto;
}

/* Notification center container */
.notif-center a {
    display: flex;
    align-items: center;
    padding: 4px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f1f1f1;
    transition: background 0.2s ease;
}

    .notif-center a:hover {
        background-color: #f9f9f9;
    }

/* Icon circle */
.notif-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #2979ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

/* Content of each notification */
.notif-content {
    display: flex;
    flex-direction: column;
    text-align: start;
}

    .notif-content .block {
        font-weight: 600;
        color: #2a2f5b;
        margin-bottom: 3px;
    }

    .notif-content .time {
        font-size: 11px;
        color: #555;
    }

/* Scrollbar style (optional) */
.notif-scroll::-webkit-scrollbar {
    width: 6px;
}

.notif-scroll::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}
#NotificationCountSpan.blinkNotification {
    /*color: transparent;*/
    animation: blinkNotification 1.5s linear infinite;
}
#notif-center-div .blinkTodaysEventText {
    /*color: transparent;*/
    animation: blinkTodaysEventText 1.5s linear infinite;
}
@keyframes blinkNotification {
    0% {
        background: linear-gradient( #31ce36, #31ce36);
        -webkit-background-clip: content-box;
    }

    100% {
        background: linear-gradient( #FF0000, #FF0000);
        -webkit-background-clip: content-box;
    }
}
@keyframes blinkTodaysEventText {
    0% {
        background: linear-gradient( #31ce36, #31ce36);
        -webkit-background-clip: text;
    }

    100% {
        background: linear-gradient( #FF0000, #FF0000);
        -webkit-background-clip: text;
    }
}
#notifDropdown .custom-popover {
    max-width: unset;
}