/* =========================================================
   ATLAS V6 — 5-State Toast Notification Styles
   States: LOADING, SUCCESS, WARNING, ERROR, INFO
   ========================================================= */

.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 420px;
    width: 90%;
    pointer-events: none;
}

.toast-message {
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    background: #0f172a;
    border: 1px solid var(--border-glass);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    color: #fff;
    font-size: 0.9rem;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
}

@keyframes toastSlideIn {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.toast-icon-text {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

.toast-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
}

.toast-close-btn:hover {
    color: #fff;
}

/* 5 Variant Themes */
.toast-message.loading {
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

.toast-message.success {
    border-color: #4ade80;
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}

.toast-message.warning {
    border-color: #fbbf24;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.3);
}

.toast-message.error {
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.toast-message.info {
    border-color: #818cf8;
    box-shadow: 0 0 15px rgba(129, 140, 248, 0.3);
}

/* Expandable Error Detail Link */
.toast-detail-link {
    font-size: 0.78rem;
    color: #38bdf8;
    text-decoration: underline;
    cursor: pointer;
    margin-top: 0.4rem;
    display: inline-block;
}

.toast-detail-container {
    display: none;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #fca5a5;
    white-space: pre-wrap;
    max-height: 120px;
    overflow-y: auto;
}
