/* ========================================
   FurKids Toast Notifications Styles
   ======================================== */

:root {
    --toast-success: #10b981;
    --toast-error: #ef4444;
    --toast-warning: #f59e0b;
    --toast-info: #3b82f6;
    --toast-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

[dir="rtl"] .toast-container {
    right: auto;
    left: 20px;
}

@media (max-width: 480px) {
    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--bg-card, #fff);
    border-radius: 12px;
    box-shadow: var(--toast-shadow);
    border-left: 4px solid var(--toast-info);
    animation: toastSlideIn 0.3s ease-out;
    position: relative;
    overflow: hidden;
}

[dir="rtl"] .toast {
    border-left: none;
    border-right: 4px solid var(--toast-info);
}

.toast--success {
    border-color: var(--toast-success);
}

.toast--error {
    border-color: var(--toast-error);
}

.toast--warning {
    border-color: var(--toast-warning);
}

.toast--info {
    border-color: var(--toast-info);
}

.toast--hiding {
    animation: toastSlideOut 0.3s ease-in forwards;
}

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

[dir="rtl"] @keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

[dir="rtl"] @keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-100%);
    }
}

.toast__icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.toast--success .toast__icon {
    background: var(--toast-success);
}

.toast--error .toast__icon {
    background: var(--toast-error);
}

.toast--warning .toast__icon {
    background: var(--toast-warning);
}

.toast--info .toast__icon {
    background: var(--toast-info);
}

.toast__content {
    flex: 1;
    min-width: 0;
}

.toast__message {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
}

.toast__close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.toast__close:hover {
    opacity: 1;
}

/* Progress bar */
.toast::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    animation: toastProgress 5s linear forwards;
}

.toast--success::after {
    background: var(--toast-success);
}

.toast--error::after {
    background: var(--toast-error);
}

.toast--warning::after {
    background: var(--toast-warning);
}

.toast--info::after {
    background: var(--toast-info);
}

@keyframes toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}
