/* Floating Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 350px;
    overflow: hidden;
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out;
    position: relative;
    border-left: 5px solid transparent;
}

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

.toast-content {
    display: flex;
    align-items: flex-start;
    padding: 15px;
}

.toast-icon {
    font-size: 24px;
    margin-right: 15px;
    margin-top: 2px;
}

.toast-text {
    flex: 1;
}

.toast-title {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

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

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

/* Progress Bar */
.toast-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
}

.toast-progress {
    height: 100%;
    width: 100%;
    background-color: currentColor;
    /* Transition handled by JS */
}

/* Variants */
/* Success */
.toast-success {
    background-color: #d1e7dd;
    /* Light green bg */
    border-left-color: #198754;
}

.toast-success .toast-icon {
    color: #198754;
}

.toast-success .toast-title {
    color: #0f5132;
}

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

/* Error */
.toast-error {
    background-color: #f8d7da;
    /* Light red bg */
    border-left-color: #dc3545;
}

.toast-error .toast-icon {
    color: #dc3545;
}

.toast-error .toast-title {
    color: #842029;
}

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

/* Warning */
.toast-warning {
    background-color: #fff3cd;
    /* Light yellow bg */
    border-left-color: #ffc107;
}

.toast-warning .toast-icon {
    color: #ffc107;
}

.toast-warning .toast-title {
    color: #664d03;
}

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

/* Info */
.toast-info {
    background-color: #cff4fc;
    /* Light blue bg */
    border-left-color: #0dcaf0;
}

.toast-info .toast-icon {
    color: #0dcaf0;
}

.toast-info .toast-title {
    color: #055160;
}

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