/* Toast Notification Standard - Bootstrap 5.3 */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1055;
    width: 350px;
    max-width: calc(100vw - 40px);
    overflow: hidden;
}

.toast {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-bottom: 0.75rem;
    border-radius: 0.375rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.toast-header {
    border-bottom: none;
    padding: 0.75rem 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast-body {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.toast .btn-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    margin: 0;
    padding: 0.25rem;
    width: 1.5rem;
    height: 1.5rem;
    background-size: 0.75rem;
}

/* Toast Types */
.toast-success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-left: 4px solid #198754;
}

.toast-success .toast-header {
    background-color: #198754;
    color: white;
}

.toast-warning {
    background-color: #fff3cd;
    color: #664d03;
    border-left: 4px solid #ffc107;
}

.toast-warning .toast-header {
    background-color: #ffc107;
    color: #212529;
}

.toast-error {
    background-color: #f8d7da;
    color: #842029;
    border-left: 4px solid #dc3545;
}

.toast-error .toast-header {
    background-color: #dc3545;
    color: white;
}

/* Toast Info Type */
.toast-info {
    background-color: #cff4fc;
    color: #055160;
    border-left: 4px solid #0dcaf0;
}

.toast-info .toast-header {
    background-color: #0dcaf0;
    color: white;
}

/* Responsive Design */
@media (max-width: 576px) {
    .toast-container {
        bottom: 10px;
        right: 10px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

/* Animation */
.toast {
    animation: slideInRight 0.3s ease-out;
}

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

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

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