/* Notification bell */
.notification-bell {
    position: relative;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 0;
    background-color: #ff6fa5;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 111, 165, 0.4);
}

/* Dropdown panel */
.notification-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    width: 360px;
    max-height: 420px;
    overflow-y: auto;
    background: linear-gradient(180deg, rgba(14, 22, 40, 0.98), rgba(11, 18, 35, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.5);
    z-index: 1050;
    display: none;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

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

.notification-dropdown .dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.85rem 1.15rem;
    color: #ecf2ff;
}

.notification-close-btn {
    background: none;
    border: none;
    color: rgba(154, 168, 199, 0.55);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 0.5rem;
    flex-shrink: 0;
    transition: color 0.15s;
}

.notification-close-btn:hover {
    color: #ecf2ff;
}

/* On touch devices (no hover), dismiss buttons should always be visible */
@media (hover: none) {
    .notification-item .dismiss-btn {
        opacity: 1 !important;
    }
}

/* Scrollbar */
.notification-dropdown::-webkit-scrollbar {
    width: 4px;
}

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

.notification-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
}

.notification-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Notification items */
.notification-item {
    padding: 0.75rem 1.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
    background-color: rgba(111, 231, 200, 0.06);
    border-left: 3px solid #6fe7c8;
}

.notification-item .notification-title {
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    color: #ecf2ff;
}

.notification-item .notification-preview {
    font-size: 0.8rem;
    color: #9aa8c7;
    white-space: normal;
    word-wrap: break-word;
}

.notification-item .notification-time {
    font-size: 0.7rem;
    color: rgba(154, 168, 199, 0.6);
    margin-top: 0.25rem;
}

.notification-item .dismiss-btn {
    opacity: 0;
    transition: opacity 0.15s ease;
    font-size: 0.8rem;
    color: #9aa8c7;
}

.notification-item:hover .dismiss-btn {
    opacity: 1;
}

/* Empty state */
.notification-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #9aa8c7;
    font-size: 0.875rem;
}

/* Stacked notifications reminder modal */
.notification-reminder-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background-color: rgba(111, 231, 200, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#notificationReminderModal .modal-body p {
    color: rgba(236, 242, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 576px) {
    .notification-dropdown {
        width: 300px;
        right: -50px;
    }
}
