/* Solo2 Component: Notifications */
/* Toast notifications and unified notification strip (below header, glassmorphism) */

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */

.toast-container {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 90vw;
    width: 280px;
}

.toast {
    padding: 0.5rem 0.875rem;
    border-radius: 0.75rem;
    font-size: var(--fs-sm);
    font-weight: 500;
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid transparent;
}

/* Subtle translucent toasts — colored text on tinted glass background */
.toast-success { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.toast-error   { background: rgba(248, 113, 113, 0.15); color: #f87171; border-color: rgba(248, 113, 113, 0.25); }
.toast-warning { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.toast-info    { background: rgba(165, 180, 252, 0.15); color: #a5b4fc; }

/* Light theme: darker text for legibility on light backgrounds */
[data-theme="light"] .toast-success { background: rgba(5, 150, 105, 0.12); color: #047857; }
[data-theme="light"] .toast-error   { background: rgba(220, 38, 38, 0.12); color: #b91c1c; border-color: rgba(220, 38, 38, 0.2); }
[data-theme="light"] .toast-warning { background: rgba(217, 119, 6, 0.12); color: #b45309; }
[data-theme="light"] .toast-info    { background: rgba(99, 102, 241, 0.12); color: #4f46e5; }

@keyframes slideIn {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100%); opacity: 0; }
}

/* ============================================================
   NOTIFICATION STRIP — below header, glassmorphism premium
   Unified zone: tips, toasts, connection, identity, device
   ============================================================ */

.notification-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 4px 16px;
    font-size: var(--fs-xs);
    font-weight: 500;
    flex-shrink: 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease;
}

.status-bar-icon {
    flex-shrink: 0;
    font-size: var(--fs-xs);
}

.status-bar-text {
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s ease;
}

/* --- Type variants with gradient backgrounds --- */

.notification-strip.status-tip {
    background: rgba(165, 180, 252, 0.08);
    color: var(--text-muted);
}

.notification-strip.status-info {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.08));
    color: #a5b4fc;
}

.notification-strip.status-success {
    background: linear-gradient(90deg, rgba(52, 211, 153, 0.15), rgba(52, 211, 153, 0.08));
    color: #34d399;
}

.notification-strip.status-warning {
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.15), rgba(251, 191, 36, 0.08));
    color: #fbbf24;
}

.notification-strip.status-error {
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.15), rgba(248, 113, 113, 0.08));
    color: #f87171;
}

.notification-strip.status-critical {
    background: linear-gradient(90deg, rgba(248, 113, 113, 0.22), rgba(248, 113, 113, 0.12));
    color: #fca5a5;
    border-bottom: 1px solid rgba(248, 113, 113, 0.2);
}

/* Connection state — indigo, same family as "connecting" */
.notification-strip.status-connection {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.18), rgba(99, 102, 241, 0.08));
    color: #a5b4fc;
}

/* Identity alert — amber/yellow, security warning, clickable */
.notification-strip.status-identity {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.20), rgba(234, 179, 8, 0.10));
    color: #fde68a;
}
.notification-strip.status-identity:hover {
    opacity: 0.85;
}

/* Device switch — blue, informational */
.notification-strip.status-device {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.20), rgba(59, 130, 246, 0.10));
    color: #93c5fd;
}

/* --- Light theme overrides --- */

[data-theme="light"] .notification-strip.status-tip {
    background: rgba(99, 102, 241, 0.06);
    color: var(--text-muted);
}

[data-theme="light"] .notification-strip.status-info {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.12), rgba(99, 102, 241, 0.06));
    color: #4f46e5;
}

[data-theme="light"] .notification-strip.status-success {
    background: linear-gradient(90deg, rgba(5, 150, 105, 0.12), rgba(5, 150, 105, 0.06));
    color: #047857;
}

[data-theme="light"] .notification-strip.status-warning {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.12), rgba(217, 119, 6, 0.06));
    color: #b45309;
}

[data-theme="light"] .notification-strip.status-error {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.12), rgba(220, 38, 38, 0.06));
    color: #b91c1c;
}

[data-theme="light"] .notification-strip.status-critical {
    background: linear-gradient(90deg, rgba(220, 38, 38, 0.18), rgba(220, 38, 38, 0.10));
    color: #991b1b;
    border-bottom: 1px solid rgba(220, 38, 38, 0.15);
}

[data-theme="light"] .notification-strip.status-connection {
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.14), rgba(99, 102, 241, 0.06));
    color: #4f46e5;
}

[data-theme="light"] .notification-strip.status-identity {
    background: linear-gradient(90deg, rgba(217, 119, 6, 0.16), rgba(217, 119, 6, 0.08));
    color: #92400e;
}

[data-theme="light"] .notification-strip.status-device {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0.06));
    color: #1d4ed8;
}
