/* =========================================================
   TOAST NOTIFICATIONS
   Modern, auto-dismissing notifications
========================================================= */
.toast-container {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 9999;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px 24px;
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    pointer-events: auto;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 4px solid;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

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

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    margin: 0 0 4px 0;
    color: var(--text-dark);
}

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

.toast-close {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: color 0.2s ease;
    font-size: 18px;
    line-height: 1;
}

.toast-close:hover {
    color: var(--text-dark);
}

/* Success Toast */
.toast.success {
    border-left-color: #10b981;
}

.toast.success .toast-icon {
    background: #d1fae5;
    color: #065f46;
}

/* Error Toast */
.toast.error {
    border-left-color: #ef4444;
}

.toast.error .toast-icon {
    background: #fee2e2;
    color: #991b1b;
}

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.3;
    transition: width linear;
}

.toast.success .toast-progress {
    color: #10b981;
}

.toast.error .toast-progress {
    color: #ef4444;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .toast-container {
        top: 80px;
        right: 16px;
        left: 16px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}