/* Toast Notification Container */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Toast Styles */
.toast {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 4px solid var(--energy-green);
    /* Default brand color */
    color: var(--text-dark-blue);
    padding: 16px 20px;
    border-radius: 8px;
    margin-top: 60px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    max-width: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

/* Types */
.toast.success {
    border-bottom-color: var(--energy-green);
    border-left: none;
}

.toast-icon.success {
    color: var(--energy-green);
}

.toast.error {
    border-bottom-color: #ff3b30;
    border-left: none;
    /* Apple Red */
}

.toast-icon.error {
    color: #ff3b30;
}

.toast.info {
    border-bottom-color: var(--science-blue);
    border-left: none;
}

.toast-icon.info {
    color: var(--science-blue);
}

.toast.warning {
    border-bottom-color: #ffcc00;
    border-left: none;
    /* Apple Yellow */
}

.toast-icon.warning {
    color: #ffcc00;
}


/* Elements inside toast */
.toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.toast-message {
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #8e8e93;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    transition: color 0.2s;
    line-height: 1;
}

.toast-close:hover {
    color: #1a1a1a;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .toast {
        background: rgba(30, 30, 30, 0.95);
        color: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .toast-close {
        color: #aaa;
    }

    .toast-close:hover {
        color: #fff;
    }
}