/* Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
}

.custom-toast {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    overflow: hidden;
    animation: slideInRight 0.3s ease-out;
    min-width: 300px;
}

.custom-toast.hiding {
    animation: slideOutRight 0.3s ease-out;
}

.toast-header {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 14px;
}

.toast-success .toast-icon {
    background-color: #d4edda;
    color: #155724;
}

.toast-error .toast-icon {
    background-color: #f8d7da;
    color: #721c24;
}

.toast-warning .toast-icon {
    background-color: #fff3cd;
    color: #856404;
}

.toast-info .toast-icon {
    background-color: #d1ecf1;
    color: #0c5460;
}

.toast-success .toast-header {
    color: #155724;
    border-left: 4px solid #28a745;
}

.toast-error .toast-header {
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.toast-warning .toast-header {
    color: #856404;
    border-left: 4px solid #ffc107;
}

.toast-info .toast-header {
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.toast-title {
    flex: 1;
    margin: 0;
    font-size: 14px;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
}

.toast-close:hover {
    color: #333;
}

.toast-body {
    padding: 12px 15px;
    font-size: 13px;
    color: #666;
}

.toast-progress {
    height: 3px;
    background-color: rgba(0, 0, 0, 0.1);
}

.toast-progress-bar {
    height: 100%;
    animation: progress 3s linear;
}

.toast-success .toast-progress-bar {
    background-color: #28a745;
}

.toast-error .toast-progress-bar {
    background-color: #dc3545;
}

.toast-warning .toast-progress-bar {
    background-color: #ffc107;
}

.toast-info .toast-progress-bar {
    background-color: #17a2b8;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

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

/* Responsive */
@media (max-width: 576px) {
    .toast-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
    
    .custom-toast {
        min-width: auto;
    }
}
