/* Toast Component Styles */

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

/* Toast */
.toast {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
    min-width: 300px;
    max-width: 400px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

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

.toast.hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-icon {
    margin-right: 12px;
    font-size: 20px;
    flex-shrink: 0;
}

.toast-content { flex: 1; min-width: 0; }
.toast-title { font-weight: 600; font-size: 14px; margin: 0 0 4px 0; color: #1f2937; }
.toast-message { font-size: 13px; margin: 0; color: #6b7280; line-height: 1.4; }

.toast-close {
    margin-left: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover { color: #6b7280; background: #f3f4f6; }

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

.toast-error { border-left-color: #ef4444; }
.toast-error .toast-icon { color: #ef4444; }

.toast-warning { border-left-color: #f59e0b; }
.toast-warning .toast-icon { color: #f59e0b; }

.toast-info { border-left-color: #3b82f6; }
.toast-info .toast-icon { color: #3b82f6; }

/* Progress Bar */
.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
    transition: width linear;
}

.toast-success .toast-progress { background: #10b981; }
.toast-error .toast-progress { background: #ef4444; }
.toast-warning .toast-progress { background: #f59e0b; }
.toast-info .toast-progress { background: #3b82f6; }

/* Responsive tweaks */
@media (max-width: 768px) {
    .toast-container { left: 10px; right: 10px; top: 10px; }
    .toast { min-width: auto; width: 100%; }
}

