/* Toast Messages Styling */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
}

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

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

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

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

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

.custom-toast .toast-body {
    padding: 12px 16px;
    color: #333;
}

/* Success Toast */
.custom-toast.toast-success .toast-header {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.custom-toast.toast-success .toast-header i {
    color: #28a745;
}

/* Error/Danger Toast */
.custom-toast.toast-error .toast-header,
.custom-toast.toast-danger .toast-header {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.custom-toast.toast-error .toast-header i,
.custom-toast.toast-danger .toast-header i {
    color: #dc3545;
}

/* Warning Toast */
.custom-toast.toast-warning .toast-header {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.custom-toast.toast-warning .toast-header i {
    color: #ffc107;
}

/* Info Toast */
.custom-toast.toast-info .toast-header {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.custom-toast.toast-info .toast-header i {
    color: #17a2b8;
}

.custom-toast .toast-header i {
    font-size: 1.2rem;
    margin-right: 10px;
}

.custom-toast .btn-close {
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.2s;
}

.custom-toast .btn-close:hover {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .toast-container {
        top: 60px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
