﻿/**
 * PFAD: /css/toast.css
 * Version: 1.0.0
 * Datum: 19.11.2025 22:15
 */

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--card-bg, #1a1a1a);
    border: 1px solid var(--border-color, rgba(255,255,255,0.2));
    border-radius: var(--radius-md, 8px);
    padding: 1rem;
    min-width: 300px;
    max-width: 400px;
    box-shadow: var(--shadow-lg, 0 10px 20px rgba(0,0,0,0.3));
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

    .toast.show {
        opacity: 1;
        transform: translateX(0);
    }

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    color: var(--text-primary, #fff);
    font-size: 0.95rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-secondary, rgba(255,255,255,0.6));
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.toast-success {
    border-left: 4px solid var(--success-color, #28a745);
}

    .toast-success .toast-icon {
        color: var(--success-color, #28a745);
    }

.toast-error {
    border-left: 4px solid var(--danger-color, #dc3545);
}

    .toast-error .toast-icon {
        color: var(--danger-color, #dc3545);
    }

.toast-warning {
    border-left: 4px solid var(--warning-color, #ffc107);
}

    .toast-warning .toast-icon {
        color: var(--warning-color, #ffc107);
    }

.toast-info {
    border-left: 4px solid var(--info-color, #17a2b8);
}

    .toast-info .toast-icon {
        color: var(--info-color, #17a2b8);
    }

@media (max-width: 768px) {
    .toast-container {
        left: 1rem;
        right: 1rem;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}
