/* Custom CSS for Chainlit */

/* Target the step icon container */
.cl-step-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Hide the default SVG icon inside to replace it */
.cl-step-icon svg {
    display: none !important;
}

/* Create a new spinner using ::after pseudo-element */
.cl-step-icon::after {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    /* Light grey background ring */
    border-top-color: #E53935;
    /* Red moving part */
    animation: spin 1s linear infinite;
}

/* Define spin animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Style the loading message text */
.cl-step-label {
    font-weight: 600;
    color: #2c3e50;
}

/* Smooth fade in for messages */
.cl-message-content {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Send button styling */
/* Inactive state (grey) */
button[id="send-button"] {
    background-color: #9ca3af !important;
    color: white !important;
}

/* Active state (blue) when enabled */
button[id="send-button"]:not(:disabled) {
    background-color: #2563eb !important;
    color: white !important;
}

/* Hover state for active button */
button[id="send-button"]:not(:disabled):hover {
    background-color: #1d4ed8 !important;
}