.chevron-spin {
    transition: transform 0.2s ease;
}

    .chevron-spin.rotate {
        transform: rotate(180deg);
    }

.notif-dropdown {
    width: 380px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 14px 40px rgba(0,0,0,0.12);
    overflow: hidden;
    padding: 0 !important;
}

.app-header-logo-link {
    position: absolute;
    top: 50%;
    left: calc(50% + var(--header-logo-offset-x, -12px));
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    margin: 0;
    transform: translate(-50%, -50%);
}

.app-header-logo {
    height: 58px;
    width: auto;
    display: block;
    transform: translateY(2px);
}

.notif-menu-wrapper {
    position: relative;
}

.notif-trigger {
    color: #333 !important;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0.35rem 0.5rem !important;
    border-radius: 12px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.notif-trigger:hover,
.notif-trigger:focus,
.show > .notif-trigger {
    background: rgba(255, 193, 7, 0.15);
    box-shadow: 0 8px 18px rgba(255, 193, 7, 0.24);
}

.notif-trigger-icon-wrap {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.notif-trigger-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.05rem;
    line-height: 1;
    color: #555;
}

.notif-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    color: #fff;
    font-size: 0.65rem;
    padding: 4px 6px;
    border-radius: 999px;
    min-width: 18px;
    text-align: center;
    display: none;
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.35);
}

.notif-header {
    background: #ffffff;
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 12px 14px;
}

.notif-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
}

.notif-list {
    max-height: 420px;
    overflow-y: auto;
    padding: 8px;
    background: #fafafa;
}

    /* Scrollbar */
    .notif-list::-webkit-scrollbar {
        width: 7px;
    }

    .notif-list::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.15);
        border-radius: 999px;
    }

    .notif-list::-webkit-scrollbar-track {
        background: transparent;
    }

.notif-item {
    display: flex;
    gap: 10px;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    border: 1px solid transparent;
}

    .notif-item:hover {
        transform: translateY(-1px);
        background: #ffffff;
        border: 1px solid rgba(0,0,0,0.06);
    }

    .notif-item.unread {
        background: #eef6ff;
        border: 1px solid #cfe6ff;
    }

.notif-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13,110,253,0.12);
    color: #0d6efd;
    flex-shrink: 0;
}

.notif-item.read .notif-icon {
    background: rgba(108,117,125,0.12);
    color: #6c757d;
}

.notif-content {
    flex: 1;
    min-width: 0;
}

.notif-text {
    font-size: 0.92rem;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-time {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 4px;
}

.notif-pill {
    font-size: 0.65rem;
    padding: 4px 8px;
    border-radius: 999px;
    background: #0d6efd;
    color: #fff;
    font-weight: 600;
    height: fit-content;
}

.notif-footer {
    background: #ffffff;
    padding: 10px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.notif-footer .dropdown-item {
    border-radius: 10px;
}

.notif-footer .dropdown-item:hover {
    background: rgba(255, 193, 7, 0.14);
}

.profile-dropdown-menu {
    left: 0 !important;
    right: auto !important;
    margin-left: 0 !important;
    z-index: 2000 !important;
    min-width: 250px;
    padding: 0.45rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    font-size: 0.9rem;
}

.profile-menu-wrapper {
    padding: 10px;
}

.profile-trigger {
    color: #333 !important;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.4rem 0.55rem !important;
    border-radius: 12px;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-trigger:hover,
.profile-trigger:focus {
    background: rgba(255, 193, 7, 0.14);
    box-shadow: 0 6px 16px rgba(255, 193, 7, 0.22);
}

.profile-avatar {
    height: 40px;
    width: 40px;
    margin-right: 10px;
    border: 2px solid #ddd;
    object-fit: cover;
}

.profile-name {
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-dropdown-header {
    padding: 0.55rem 0.65rem 0.45rem;
}

.profile-dropdown-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #1f2937;
}

.profile-dropdown-subtitle {
    font-size: 0.75rem;
    color: #6b7280;
}

.profile-menu-item {
    border-radius: 10px;
    padding: 0.55rem 0.65rem;
    font-weight: 600;
}

.profile-menu-item:hover,
.profile-menu-item:focus {
    background: rgba(255, 193, 7, 0.14);
}

.profile-menu-icon {
    color: #0d6efd;
}

@media (max-width: 991.98px) {
    .notif-dropdown {
        width: min(92vw, 360px);
        margin-right: 0 !important;
    }
}

.logout-confirm-modal {
    border: none;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.logout-icon-wrap {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
    font-size: 1.45rem;
}

#logoutConfirmModal .btn {
    border-radius: 10px;
    font-weight: 600;
}
