/**
 * Notification Popup Styles
 * Modal popup for nav badge notifications
 */

/* Overlay */
.notification-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.notification-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Popup Container */
.notification-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    background: var(--bg-primary, #ffffff);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 420px;
    width: 90%;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.notification-popup-overlay.visible .notification-popup {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Close Button */
.notification-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #64748b);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.notification-popup-close:hover {
    background: var(--bg-secondary, #f1f5f9);
    color: var(--text-primary, #1e293b);
}

.notification-popup-close svg {
    width: 20px;
    height: 20px;
}

/* Content */
.notification-popup-content {
    padding: 32px 24px 24px;
    text-align: center;
}

/* Icon */
.notification-popup-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid;
}

/* Icon color variants */
.notification-popup-icon.icon-info {
    background: var(--tint-info);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.notification-popup-icon.icon-warning {
    background: var(--tint-warning);
    border-color: var(--risk-high);
    color: var(--risk-high);
}

.notification-popup-icon.icon-critical {
    background: var(--tint-danger);
    border-color: var(--color-danger);
    color: var(--color-danger);
}

.notification-popup-icon.icon-success {
    background: var(--tint-success);
    border-color: var(--color-success);
    color: var(--color-success);
}

.notification-popup-icon svg {
    width: 32px;
    height: 32px;
}

/* Title */
.notification-popup-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary, #1e293b);
    margin: 0 0 12px;
    line-height: 1.4;
}

/* Description */
.notification-popup-description {
    font-size: 0.9375rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.6;
    margin: 0 0 20px;
}

/* Details List (for showing specific items) */
.notification-popup-details {
    background: var(--bg-secondary, #f8fafc);
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 20px;
    text-align: left;
}

.notification-popup-details-title {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary, #64748b);
    margin: 0 0 8px;
}

.notification-popup-details-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.notification-popup-details-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.875rem;
    color: var(--text-primary, #1e293b);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.notification-popup-details-list li:last-child {
    border-bottom: none;
}

.notification-popup-details-list .detail-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    background: var(--bg-primary, #ffffff);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
}

.notification-popup-details-list .detail-count.count-warning {
    background: var(--tint-warning);
    color: var(--risk-high);
}

.notification-popup-details-list .detail-count.count-critical {
    background: var(--tint-danger);
    color: var(--color-danger);
}

/* Dismiss Checkbox */
.notification-popup-dismiss {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 0 24px;
    padding: 12px;
    background: var(--bg-secondary, #f8fafc);
    border-radius: 8px;
}

.notification-popup-dismiss input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent-primary, #3b82f6);
}

.notification-popup-dismiss label {
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
    cursor: pointer;
    user-select: none;
}

/* Actions */
.notification-popup-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.notification-popup-actions button {
    flex: 1;
    max-width: 160px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.notification-popup-btn-secondary {
    background: var(--bg-primary, #ffffff);
    border: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-secondary, #64748b);
}

.notification-popup-btn-secondary:hover {
    background: var(--bg-secondary, #f8fafc);
    border-color: var(--text-secondary, #64748b);
    color: var(--text-primary, #1e293b);
}

.notification-popup-btn-primary {
    background: var(--accent-primary, #3b82f6);
    border: 1px solid var(--accent-primary, #3b82f6);
    color: var(--text-on-accent);
}

.notification-popup-btn-primary:hover {
    background: var(--accent-primary-hover);
    border-color: var(--accent-primary-hover);
}

/* Warning variant primary button */
.notification-popup-btn-primary.btn-warning {
    background: var(--risk-high);
    border-color: var(--risk-high);
}

.notification-popup-btn-primary.btn-warning:hover {
    background: var(--color-warning-hover);
    border-color: var(--color-warning-hover);
}

/* Critical variant primary button */
.notification-popup-btn-primary.btn-critical {
    background: var(--color-danger);
    border-color: var(--color-danger);
}

.notification-popup-btn-primary.btn-critical:hover {
    background: var(--color-danger-hover);
    border-color: var(--color-danger-hover);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .notification-popup {
    background: var(--bg-secondary, #1e293b);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .notification-popup-details {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .notification-popup-dismiss {
    background: rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .notification-popup-details-list .detail-count {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .notification-popup-btn-secondary {
    background: transparent;
    border-color: var(--border-color, #334155);
}

[data-theme="dark"] .notification-popup-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 480px) {
    .notification-popup {
        width: 95%;
        max-width: none;
    }

    .notification-popup-content {
        padding: 24px 16px 16px;
    }

    .notification-popup-actions {
        flex-direction: column;
    }

    .notification-popup-actions button {
        max-width: none;
    }
}
