/* Hide Browser Notifications Completely */
.notification-permission-dialog,
.notification-permission-popup,
.chrome-notification,
.firefox-notification,
.edge-notification,
.safari-notification,
[class*="notification-permission"],
[id*="notification-permission"],
[class*="browser-notification"],
[id*="browser-notification"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Custom Notification System */
:root {
    --notification-success: #10b981;
    --notification-error: #ef4444;
    --notification-warning: #f59e0b;
    --notification-info: #3b82f6;
    --notification-bg: rgba(255, 255, 255, 0.95);
    --notification-text: #1f2937;
    --notification-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Notification Container */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 400px;
    pointer-events: none;
}

/* Individual Notification */
.notification {
    background: var(--notification-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 12px;
    box-shadow: var(--notification-shadow);
    border-left: 4px solid var(--notification-info);
    display: flex;
    align-items: center;
    gap: 12px;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: auto;
    position: relative;
    overflow: hidden;
}

/* Notification Types */
.notification.success {
    border-left-color: var(--notification-success);
}

.notification.error {
    border-left-color: var(--notification-error);
}

.notification.warning {
    border-left-color: var(--notification-warning);
}

.notification.info {
    border-left-color: var(--notification-info);
}

/* Show Animation */
.notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Hide Animation */
.notification.hide {
    transform: translateX(100%);
    opacity: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    max-height: 0;
}

/* Notification Icon */
.notification-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.notification.success .notification-icon {
    background: var(--notification-success);
}

.notification.error .notification-icon {
    background: var(--notification-error);
}

.notification.warning .notification-icon {
    background: var(--notification-warning);
}

.notification.info .notification-icon {
    background: var(--notification-info);
}

/* Notification Content */
.notification-content {
    flex: 1;
    color: var(--notification-text);
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    line-height: 1.2;
}

.notification-message {
    font-size: 13px;
    opacity: 0.8;
    line-height: 1.3;
}

/* Close Button */
.notification-close {
    background: none;
    border: none;
    color: var(--notification-text);
    opacity: 0.5;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.notification-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

/* Progress Bar */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.notification-progress-bar {
    height: 100%;
    background: var(--notification-info);
    width: 100%;
    transform-origin: left;
    animation: progress 5s linear forwards;
}

.notification.success .notification-progress-bar {
    background: var(--notification-success);
}

.notification.error .notification-progress-bar {
    background: var(--notification-error);
}

.notification.warning .notification-progress-bar {
    background: var(--notification-warning);
}

@keyframes progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .notification {
        margin-bottom: 8px;
        padding: 14px 16px;
    }
    
    .notification-title {
        font-size: 13px;
    }
    
    .notification-message {
        font-size: 12px;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    :root {
        --notification-bg: rgba(31, 41, 55, 0.95);
        --notification-text: #f9fafb;
    }
}

/* Hover Effects */
.notification:hover {
    transform: translateX(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.notification:hover .notification-progress-bar {
    animation-play-state: paused;
}

/* Multiple Notifications Stacking */
.notification:nth-child(1) { z-index: 100; }
.notification:nth-child(2) { z-index: 99; }
.notification:nth-child(3) { z-index: 98; }
.notification:nth-child(4) { z-index: 97; }
.notification:nth-child(5) { z-index: 96; }

/* Glassmorphism Effect */
.notification {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Enhanced Icons */
.notification-icon i {
    font-size: 12px;
}

/* Success Icon */
.notification.success .notification-icon::before {
    content: "✓";
}

/* Error Icon */
.notification.error .notification-icon::before {
    content: "✕";
}

/* Warning Icon */
.notification.warning .notification-icon::before {
    content: "⚠";
}

/* Info Icon */
.notification.info .notification-icon::before {
    content: "ℹ";
}
