/* ==============================================================
   SUCALI LAB - PREMIUM NEUMORPHIC TOAST NOTIFICATIONS
   ============================================================== */

#sucali-toast-container {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 14px;
    pointer-events: none;
    max-width: 420px;
    width: calc(100% - 40px);
}

.sucali-toast {
    position: relative;
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    border-radius: 16px;
    background: var(--theme-bg-surface, #151f32);
    box-shadow: 8px 8px 20px var(--theme-shadow-dark, #090e18),
                -8px -8px 20px var(--theme-shadow-light, #1d2a44),
                inset 0 1px 1px rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--theme-text, #f1f5f9);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.sucali-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.sucali-toast.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 14px;
    box-shadow: inset 2px 2px 5px var(--theme-shadow-dark, #090e18),
                inset -2px -2px 5px var(--theme-shadow-light, #1d2a44);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 4px;
    color: #ffffff;
}

.toast-message {
    font-size: 0.85rem;
    line-height: 1.45;
    color: rgba(241, 245, 249, 0.82);
    word-break: break-word;
}

.toast-close {
    background: transparent;
    border: none;
    color: rgba(241, 245, 249, 0.5);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    margin-left: 10px;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.toast-close:hover {
    color: #ffffff;
    transform: scale(1.15);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
}

/* Toast Themes */
.toast-success .toast-icon {
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
}
.toast-success .toast-progress-bar {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.toast-error .toast-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.12);
}
.toast-error .toast-progress-bar {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

.toast-warning .toast-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
}
.toast-warning .toast-progress-bar {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.toast-info .toast-icon {
    color: var(--theme-primary, #00e5ff);
    background: rgba(0, 229, 255, 0.12);
}
.toast-info .toast-progress-bar {
    background: linear-gradient(90deg, var(--theme-primary, #00e5ff), var(--theme-secondary, #3b82f6));
}

@media (max-width: 576px) {
    #sucali-toast-container {
        top: 16px;
        right: 16px;
        left: 16px;
        width: auto;
    }
}
