/* cm-sonner.css - Vanilla JS Sonner-like Toast System */
.cm-toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
    width: 350px;
    max-width: calc(100vw - 48px);
}

.cm-toast {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #1C1C24;
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1);
    pointer-events: auto;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    will-change: transform, opacity;
}

.cm-toast.cm-toast-visible {
    opacity: 1;
}

/* Stacking */
.cm-toast[data-index="0"] { transform: translateY(0) scale(1); z-index: 10; }
.cm-toast[data-index="1"] { transform: translateY(-16px) scale(0.95); z-index: 9; }
.cm-toast[data-index="2"] { transform: translateY(-32px) scale(0.9); z-index: 8; }
.cm-toast[data-index="3"] { transform: translateY(-48px) scale(0.85); z-index: 7; opacity: 0; pointer-events: none; }

.cm-toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-toast-icon svg {
    width: 14px;
    height: 14px;
}

.cm-toast-content {
    flex-grow: 1;
    font-size: 14px;
    line-height: 1.4;
    font-family: 'Inter', system-ui, sans-serif;
}

/* Variants */
.cm-toast--success .cm-toast-icon { background: #4ADE80; color: #000; }
.cm-toast--error .cm-toast-icon { background: #EF4444; color: #fff; }
.cm-toast--info .cm-toast-icon { background: #3B82F6; color: #fff; }
.cm-toast--warning .cm-toast-icon { background: #F59E0B; color: #fff; }

.cm-toast-close {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.4);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s;
}
.cm-toast-close:hover { color: white; }
