/* Notification Dropdown */
.notification-container {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 350px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    display: none;
    /* Hidden by default */
    animation: slideDown 0.2s ease-out;
}

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

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notif-header {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notif-title {
    font-weight: 600;
    color: var(--text-primary);
}

.notif-clear {
    font-size: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.notif-body {
    max-height: 400px;
    overflow-y: auto;
}

.notif-item {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: var(--space-3);
    align-items: start;
    transition: background 0.2s;
}

.notif-item:hover {
    background: var(--bg-tertiary);
}

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

.notif-icon {
    margin-top: 2px;
}

.notif-item.danger .notif-icon {
    color: var(--color-danger);
}

.notif-item.warning .notif-icon {
    color: var(--color-warning);
}

.notif-item.info .notif-icon {
    color: var(--color-primary);
}

.notif-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.notif-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Badge update */
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: var(--color-danger);
    color: white;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-secondary);
}