/* Toast Notifications - shadcn/ui style */
:root {
    --toast-z-index: 9999;
    --toast-duration: 4000ms;
}

.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: var(--toast-z-index);
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 420px;
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 8px;
    background-color: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    pointer-events: auto;
    animation: slideIn 0.3s ease-out forwards;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

.toast.hide {
    animation: slideOut 0.3s ease-in forwards;
}

.toast-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.4;
    color: #1f2937;
}

.toast-description {
    font-size: 13px;
    line-height: 1.4;
    color: #6b7280;
}

.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.toast-close:hover {
    color: #4b5563;
}

/* Success variant */
.toast.success {
    background-color: #f0fdf4;
    border-color: #dcfce7;
}

.toast.success .toast-icon {
    color: #16a34a;
}

.toast.success .toast-title {
    color: #15803d;
}

.toast.success .toast-description {
    color: #4b5563;
}

/* Error variant */
.toast.error {
    background-color: #fef2f2;
    border-color: #fee2e2;
}

.toast.error .toast-icon {
    color: #dc2626;
}

.toast.error .toast-title {
    color: #b91c1c;
}

.toast.error .toast-description {
    color: #7f1d1d;
}

/* Warning variant */
.toast.warning {
    background-color: #fffbeb;
    border-color: #fef3c7;
}

.toast.warning .toast-icon {
    color: #ea580c;
}

.toast.warning .toast-title {
    color: #b45309;
}

.toast.warning .toast-description {
    color: #7c2d12;
}

/* Info variant */
.toast.info {
    background-color: #f0f9ff;
    border-color: #e0f2fe;
}

.toast.info .toast-icon {
    color: #0284c7;
}

.toast.info .toast-title {
    color: #075985;
}

.toast.info .toast-description {
    color: #0c4a6e;
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Mobile responsive */
@media (max-width: 640px) {
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .toast {
        min-width: unset;
        max-width: unset;
    }
}