/* Modern Notifications Dropdown */
#notificationsContainer .popover {
    max-width: 420px !important;
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    background: #ffffff;
    margin-top: 8px;
}

#notificationsContainer .popover .arrow {
    display: none;
}

#notificationsContainer .popover-body {
    padding: 0;
    border-radius: 16px;
}

/* Notification List Container */
.notifications-list {
    width: 420px;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
}

/* Header */
.notifications-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notifications-header h3 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.notifications-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.notifications-action-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 6px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notifications-action-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
}

.notifications-action-link i {
    font-size: 11px;
}

.notifications-action-separator {
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

/* Notifications List */
.notifications-items {
    max-height: 420px;
    overflow-y: auto;
    background: #ffffff;
}

.notifications-items::-webkit-scrollbar {
    width: 6px;
}

.notifications-items::-webkit-scrollbar-track {
    background: #f5f7fa;
}

.notifications-items::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.notifications-items::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Individual Notification */
.notification-item {
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.2s ease;
    text-decoration: none;
    display: block;
    position: relative;
}

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

.notification-item:hover {
    background: #f8fafc;
    text-decoration: none;
    transform: translateX(4px);
}

.notification-item.unread {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
}

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

.notification-item.unread::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 12px;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 8px;
}

.notification-icon.danger {
    background: #fee2e2;
    color: #dc2626;
}

.notification-icon.warning {
    background: #fef3c7;
    color: #f59e0b;
}

.notification-icon.success {
    background: #d1fae5;
    color: #059669;
}

.notification-icon.info {
    background: #dbeafe;
    color: #3b82f6;
}

.notification-text {
    color: #0f172a;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    margin: 0;
}

.notification-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 12px;
    margin: 0;
}

.notification-meta i {
    font-size: 11px;
}

.notification-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Footer */
.notifications-footer {
    padding: 12px 24px;
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.notifications-footer a {
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.notifications-footer a:hover {
    background: #eff6ff;
    text-decoration: none;
    transform: translateY(-2px);
}

.notifications-footer a i {
    font-size: 12px;
}

/* Empty State */
.notifications-empty {
    padding: 60px 40px;
    text-align: center;
    background: #ffffff;
}

.notifications-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.notifications-empty h4 {
    color: #0f172a;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.notifications-empty p {
    color: #64748b;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* Loading State */
.notifications-loading {
    padding: 40px;
    text-align: center;
    background: #ffffff;
}

.notifications-loading i {
    font-size: 32px;
    color: #3b82f6;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Bell Icon States */
.has-notifications,
.empty-notifications {
    display: none;
}

.has-notifications.active,
.empty-notifications.active {
    display: inline-block !important;
}

/* Responsive */
@media (max-width: 480px) {
    #notificationsContainer .popover,
    .notifications-list {
        max-width: 100vw;
        width: 100vw;
        border-radius: 0;
    }

    .notifications-items {
        max-height: 60vh;
    }

    .notifications-header,
    .notification-item,
    .notifications-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
}
