﻿/* ============================================
   TOAST/NOTIFICATION STYLES - Unified
   ============================================ */

/* Toast container (modern style - bottom right) */
.toast-container {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    z-index: 1100;
    opacity: 0;
    transform: translateX(100%);
    transition: all var(--transition-slow);
    max-width: 400px;
}

    .toast-container.show {
        opacity: 1;
        transform: translateX(0);
    }

/* Toast element */
.toast {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--border-color);
    overflow: hidden;
    min-width: 300px;
    animation: slideInToast var(--transition-slow) ease-out;
}

    .toast.success {
        border-left: 4px solid #10b981;
    }

    .toast.error {
        border-left: 4px solid #dc3545;
    }

    .toast.warning {
        border-left: 4px solid #f59e0b;
    }

    .toast.info {
        border-left: 4px solid #06b6d4;
    }

/* Toast content */
.toast-content {
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: var(--spacing-sm);
    margin: calc(-1 * var(--spacing-sm)) calc(-1 * var(--spacing-sm)) calc(-1 * var(--spacing-sm)) 0;
    transition: color var(--transition);
}

    .toast-close:hover {
        color: var(--text-secondary);
    }

/* ============================================
   NOTIFICATION (Legacy style - top right)
   ============================================ */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: bold;
    z-index: 44100;
    opacity: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    animation: fadeInOut 3s ease-in-out;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
}

    .notification.success {
        background: #2ecc71;
    }

    .notification.error {
        background: #e74c3c;
    }

    .notification.warning {
        background: #f59e0b;
    }

    .notification.info {
        background: #06b6d4;
    }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes slideInToast {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    10% {
        opacity: 1;
        transform: translateY(0);
    }

    90% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-20px);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .toast-container {
        bottom: var(--spacing-md);
        right: var(--spacing-md);
        left: var(--spacing-md);
        max-width: none;
    }

    .toast {
        min-width: auto;
    }

    .notification {
        right: 10px;
        left: 10px;
        min-width: auto;
    }
}
