/**
 * One Sphere Solutions - Toast Notification Styles
 * Improved styling for toast notifications
 */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    width: 100%;
}

.toast {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    opacity: 0;
    border-left: 4px solid #17a2b8; /* Default info color */
}

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

.toast-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    flex-shrink: 0;
    color: #17a2b8; /* Default info color */
    font-size: 20px;
}

.toast-content {
    flex: 1;
    padding: 15px 10px;
}

.toast-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

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

.toast-close {
    background: none;
    border: none;
    color: #999;
    padding: 10px;
    cursor: pointer;
    align-self: flex-start;
    font-size: 14px;
    transition: color 0.2s ease;
}

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

/* Toast types */
.toast-success {
    border-left-color: #28a745;
}

.toast-success .toast-icon {
    color: #28a745;
}

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

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

/* Special styling for account status errors */
.toast-error[data-status="inactive"],
.toast-error[data-status="terminated"] {
    border-left-width: 6px;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.25);
}

.toast-error[data-status="inactive"] .toast-title,
.toast-error[data-status="terminated"] .toast-title {
    color: #dc3545;
    font-size: 17px;
}

.toast-error[data-status="inactive"] .toast-message,
.toast-error[data-status="terminated"] .toast-message {
    font-weight: 500;
}

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

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

.toast-info {
    border-left-color: #17a2b8;
}

.toast-info .toast-icon {
    color: #17a2b8;
}

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

    .toast {
        margin-bottom: 10px;
    }
}
