/* Global Notification Indicator Styles */
.global-notification-indicator {
    display: inline-flex;
    align-items: center;
    color: white;
    border-radius: 20px;
    padding: 6px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    animation: notificationFadeIn 0.3s ease-out;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-width: 250px;
    max-width: 450px;
    opacity: 0.95;
}

/* Notification Type Colors */
.notification-error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.notification-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.notification-info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.notification-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.notification-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon svg {
    width: 20px;
    height: 20px;
}

.notification-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-weight: 500;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.dismiss-button {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
    padding: 0;
}

.dismiss-button svg {
    width: 10px;
    height: 10px;
}

.dismiss-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.dismiss-button:active {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0.95);
}

/* Animations */
@keyframes notificationFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 0.95;
        transform: translateY(0) scale(1);
    }
}

@keyframes notificationFadeOut {
    from {
        opacity: 0.95;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .global-notification-indicator {
        min-width: 0;
        max-width: 320px;
        padding: 5px 12px;
    }

    .notification-content {
        gap: 8px;
    }

    .notification-icon svg {
        width: 18px;
        height: 18px;
    }

    .notification-message {
        font-size: 11px;
    }

    .dismiss-button {
        width: 18px;
        height: 18px;
    }

    .dismiss-button svg {
        width: 9px;
        height: 9px;
    }
}

@media (max-width: 480px) {
    .global-notification-indicator {
        min-width: 0;
        max-width: none;
        padding: 5px 14px;
    }

    .notification-message {
        font-size: 10px;
        -webkit-line-clamp: 3;
    }

    .notification-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Dark theme support */
@media (prefers-color-scheme: dark) {
    .notification-error {
        background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    }

    .notification-warning {
        background: linear-gradient(135deg, #d97706 0%, #92400e 100%);
    }

    .notification-info {
        background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    }

    .notification-success {
        background: linear-gradient(135deg, #059669 0%, #047857 100%);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .global-notification-indicator {
        border: 2px solid currentColor;
    }

    .notification-error {
        background: #c00;
        color: #fff;
    }

    .notification-warning {
        background: #f80;
        color: #000;
    }

    .notification-info {
        background: #08f;
        color: #fff;
    }

    .notification-success {
        background: #0a0;
        color: #fff;
    }

    .dismiss-button {
        background: transparent;
        border: 1px solid currentColor;
    }
}

/* Accessibility */
.global-notification-indicator:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .global-notification-indicator {
        animation: none;
    }

    .dismiss-button:active {
        transform: none;
    }
}
