@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg: #0f1216;
    --panel: #171c22;
    --accent: #f2c14e;
    --accent-2: #67d5b5;
    --muted: #9aa6b2;
    --text: #eef3f7;
    --shadow: rgba(0, 0, 0, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 20% 10%, rgba(242, 193, 78, 0.2), transparent 40%),
        radial-gradient(circle at 80% 0%, rgba(103, 213, 181, 0.18), transparent 35%),
        linear-gradient(180deg, #0b0e12 0%, #151a20 100%);
    min-height: 100vh;
    color: var(--text);
}

/* Toast container — stacks multiple toasts vertically */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

/* Legacy static #toastNotification divs stay hidden */
.toast-notification {
    display: none;
}

/* Dynamic toasts created inside the container */
#toast-container .toast-notification {
    display: block;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    max-width: 350px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s ease forwards;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#toast-container .toast-notification.dismissing {
    opacity: 0;
    transform: translateX(20px);
}

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

#toast-container .toast-notification.success {
    background-color: rgba(103, 213, 181, 0.15);
    color: var(--accent-2);
    border-left: 4px solid var(--accent-2);
}

#toast-container .toast-notification.error {
    background-color: rgba(255, 107, 107, 0.15);
    color: #ff6b6b;
    border-left: 4px solid #ff6b6b;
}
