/**
 * WhatsApp-like Chat Interface Styles
 */

/* --- Base Font & Colors for Financial Theme --- */
/* Added by Jesh, 2025-05-08, Set base styles for a professional/financial theme */
body .ai-simulation-container-wrapper { /* Apply to a wrapper if possible, otherwise body */
    font-family: -apple-system, BlinkMacSystemFont, "Roboto", Helvetica, Arial, sans-serif ; /* Clean sans-serif stack */
}

/* Scenario info container (Optional - Style can be simplified or removed if info moves to Intro) */
.ai-simulation-info-container {
    max-width: 800px;
    margin: 20px auto 20px; /* Edited by Jesh, 2025-05-08, Adjusted top margin */
    background-color: #ffffff; /* Edited by Jesh, 2025-05-08, Changed to white */
    border: 1px solid #dee2e6; /* Edited by Jesh, 2025-05-08, Softer border color */
    border-radius: 4px; /* Edited by Jesh, 2025-05-08, Slightly less rounded */
    padding: 25px; /* Edited by Jesh, 2025-05-08, Adjusted padding */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Edited by Jesh, 2025-05-08, Softer shadow */
}

/* Task/Prompt styling */
.ai-simulation-prompt {
    background-color: #5BD2D5; /* Edited by Jesh, 2025-05-08, Changed background color as requested */
    border: 1px solid #2DAEB1; /* Edited by Jesh, 2025-05-08, Adjusted border for new background */
    border-radius: 4px; /* Edited by Jesh, 2025-05-08, Make nearly square */
    padding: 15px;
    margin: 15px 0;
    font-family: inherit; /* Edited by Jesh, 2025-05-08, Use inherited font */
    font-size: 0.8em; /* Edited by Jesh, 2025-05-08, Slightly smaller */
}

/* Progress bar styling (Top progress bar, should be deleted later, just leave the below one) */
.ai-simulation-progress {
    margin: 15px 0;
}

.ai-simulation-progress-text {
    text-align: center;
    font-size: 0.8em; /* Edited by Jesh, 2025-05-08, Slightly smaller */
    color: #6c757d; /* Edited by Jesh, 2025-05-08, Use theme gray */
    margin-bottom: 5px;
}

.ai-simulation-progress-bar {
    height: 6px; /* Edited by Jesh, 2025-05-08, Thinner bar */
    background-color: #e9ecef; /* Edited by Jesh, 2025-05-08, Lighter gray track */
    border-radius: 3px; /* Edited by Jesh, 2025-05-08, Slightly rounded */
    overflow: hidden;
}

.ai-simulation-progress-fill {
    height: 100%;
    background-color: #7297C5; /* Edited by Jesh, 2025-05-08, Use theme blue */
    transition: width 0.3s ease;
    border-radius: 3px; /* Added by Jesh, 2025-05-08, Match parent radius */
}

/* Introduction screen */
#introduction-screen {
    max-width: 800px;
    margin: 20px auto;
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: center;
}

#introduction-screen h2 {
    margin-bottom: 15px;
    color: #333;
}

#introduction-screen p {
    margin-bottom: 15px;
    color: #555;
}

#start-simulation {
    background-color: #5BD2D5;
    color: #333;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#start-simulation:hover {
    background-color: #4ABDC0;
}

/* Main container */
.ai-whatsapp-chat-container {
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid #dee2e6; /* Edited by Jesh, 2025-05-08, Softer border */
    border-radius: 4px; /* Edited by Jesh, 2025-05-08, Make nearly square/slightly rounded */
    overflow: hidden;
    font-family: inherit; /* Edited by Jesh, 2025-05-08, Inherit base font */
    display: flex;
    flex-direction: column;
    height: 600px; /* Adjust height as needed */
    background-color: #f8f9fa6f; /* Edited by Jesh, 2025-05-08, Very light gray background */
    background-image: none; /* Edited by Jesh, 2025-05-08, Removed WhatsApp background image */
}

/* Grey out chat container until start button is clicked */
.ai-whatsapp-chat-container.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Hide simulation info container initially */
.ai-simulation-info-container {
    display: none;
}

/* Header */
/* Deleted by Jesh, 2025-05-08, Removed Header styles as it's not used */
/* .ai-whatsapp-header { ... } */
/* .ai-whatsapp-header h3 { ... } */

/* Messages container (should be deleted later)*/
#ai-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    position: relative;
}

/* System message */
.ai-whatsapp-system-message {
    background-color: #e9ecef; /* Edited by Jesh, 2025-05-08, Use theme gray */
    border-radius: 3px; /* Edited by Jesh, 2025-05-08, Make nearly square */
    margin: 8px auto; /* Edited by Jesh, 2025-05-08, Increase vertical margin */
    max-width: 85%;
    padding: 8px 12px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-size: 0.8em; /* Edited by Jesh, 2025-05-08, Slightly smaller */
    color: #404040; /* Edited by Jesh, 2025-05-08, Darker gray text */
}

/* User message */
.ai-whatsapp-user-message {
    background-color: #eef5ff; /* Edited by Jesh, 2025-05-08, Light sky blue background */
    border-radius: 3px; /* Edited by Jesh, 2025-05-08, Make nearly square */
    margin: 5px 10px 5px auto; /* Edited by Jesh, 2025-05-08, Adjust margins */
    max-width: 75%; /* Edited by Jesh, 2025-05-08, Slightly wider */
    padding: 10px 14px; /* Edited by Jesh, 2025-05-08, Adjust padding */
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    color: #404040; /* Edited by Jesh, 2025-05-08, Ensure dark text */
    /* Display flex properties removed for simplicity unless needed for avatar */
}

/* Deleted by Jesh, 2025-05-08, Remove bubble tail */
/* .ai-whatsapp-user-message::after { ... } */

/* fade transition */
.ai-whatsapp-ai-message.ai-message-visible {
    opacity: 1;
}

/* AI message */
.ai-whatsapp-ai-message {
    /* start of invisible and slowly transition to become visible */
    transition: opacity 0.3s ease;

    background-color: #E9ECEF; /* Edited by Jesh, 2025-05-08, Slightly darker gray than background */
    border-radius: 3px; /* Edited by Jesh, 2025-05-08, Make nearly square */
    margin: 5px auto 5px 10px; /* Edited by Jesh, 2025-05-08, Adjust margins */
    max-width: 75%; /* Edited by Jesh, 2025-05-08, Slightly wider */
    padding: 8px 12px;
    position: relative;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: flex-start; /* Keep flex for avatar alignment */
    color: #404040; /* Edited by Jesh, 2025-05-08, Ensure dark text */
    gap: 8px; /* Added by Jesh, 2025-05-08, Add space between avatar and content */
}

/* Deleted by Jesh, 2025-05-08, Remove bubble tail */
/* .ai-whatsapp-ai-message::after { ... } */

/* Message name */
.ai-message-name {
    font-weight: 500;
    font-size: 0.9em; /* Edited by Jesh, 2025-05-08, Adjust size */
    color: #262626; /* Edited by Jesh, 2025-05-08, Use theme blue */
    margin-bottom: 4px; /* Edited by Jesh, 2025-05-08, Adjust spacing */
    font-family: inherit; /* Added by Jesh, 2025-05-08, Ensure font consistency */
}

/* Message avatar (important!!! - should be deleted later)*/
/*.ai-message-avatar {*/
/*    margin-right: 10px; !* Edited by Jesh, 2025-05-08, Slightly more space *!*/
/*}*/

.ai-avatar {
    width: 32px; /* Edited by Jesh, 2025-05-08, Slightly smaller avatar */
    height: 32px; /* Edited by Jesh, 2025-05-08, Slightly smaller avatar */
    border-radius: 4px; /* Edited by Jesh, 2025-05-08, Make avatar square-ish */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 500; /* Edited by Jesh, 2025-05-08, Normal weight */
    font-size: 0.9em; /* Edited by Jesh, 2025-05-08, Smaller initials */
    /* Background color set dynamically by JS/PHP */
}

/* Message content */
.ai-message-content {
    flex: 1;
    line-height: 1.5; /* Edited by Jesh, 2025-05-08, Improved line spacing */
    font-size: 15px; /* Edited by Jesh, 2025-05-08, Increased font size as requested */
    font-family: inherit; /* Added by Jesh, 2025-05-08, Ensure font consistency */
    padding-right: 10px; /* Added by Jesh, 2025-05-08, Fix right spacing issue */
    box-sizing: border-box; /* Added by Jesh, 2025-05-08, Ensure padding works correctly */
}

/* Message time */
.ai-message-time {
    font-size: 0.7em; /* Edited by Jesh, 2025-05-08, Smaller timestamp */
    color: #6c757d; /* Edited by Jesh, 2025-05-08, Theme gray */
    align-self: flex-end;
    margin-top: 3px;
    margin-left: 5px;
}

/* Input container */
.ai-whatsapp-input-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr; /* 4 equal columns for easy 25% sizing */
    grid-template-rows: auto auto; /* 2 rows, first auto-sizes to content */
    gap: 10px; /* Optional: adds space between grid items */
    background-color: #ffffff; /* Edited by Jesh, 2025-05-08, White background */
    padding: 10px 15px; /* Edited by Jesh, 2025-05-08, Adjust padding */
    align-items: center; /* Align items vertically */
    border-top: 1px solid #dee2e6; /* Edited by Jesh, 2025-05-08, Softer border */
}

/* User message textarea */
#ai-user-message {
    grid-column: 1 / -1; /* Spans all columns (full width) */
    grid-row: 1; /* First row */
    border: 1px solid #ced4da; /* Edited by Jesh, 2025-05-08, Add border */
    border-radius: 3px; /* Edited by Jesh, 2025-05-08, Make nearly square */
    padding: 10px 15px;
    height: 42px; /* Edited by Jesh, 2025-05-08, Adjust base height */
    line-height: 1.5; /* Edited by Jesh, 2025-05-08, Adjust line height */
    max-height: 120px; /* Edited by Jesh, 2025-05-08, Set max height for resizing */
    font-family: inherit;
    font-size: 15px; /* Edited by Jesh, 2025-05-08, Match message font size */
    resize: vertical; /* Added by Jesh, 2025-05-08, Enable vertical resize */
    overflow-y: auto; /* Added by Jesh, 2025-05-08, Add scrollbar when resized */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

#ai-user-message::-webkit-scrollbar {
    display: none;
}

#ai-user-message:focus {
    outline: none;
    border-color: #86b7fe; /* Edited by Jesh, 2025-05-08, Add focus indicator */
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25); /* Edited by Jesh, 2025-05-08, Add focus indicator */
}

/* Send button */
.ai-whatsapp-send-button {
    background-color: #7297C5 !important; /* Edited by Jesh, 2025-05-08 */
    color: rgb(0, 0, 0);
    border: none;
    border-radius: 3px; /* Edited by Jesh, 2025-05-08, Make nearly square */
    width: auto; /* Edited by Jesh, 2025-05-08, Auto width for text */
    height: 42px; /* Edited by Jesh, 2025-05-08, Match textarea height */
    padding: 0 15px; /* Edited by Jesh, 2025-05-08, Padding for text */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    font-size: 15px; /* Edited by Jesh, 2025-05-08, Set font size */
    font-weight: 500; /* Edited by Jesh, 2025-05-08, Normal weight */
    transition: background-color 0.2s;
}

.ai-whatsapp-send-button:hover {
    background-color: #567293 !important; /* Edited by Jesh, 2025-05-08 */
}

/* Send button icon/text */
/* Deleted by Jesh, 2025-05-08, Removed ::before rule for triangle icon */
/* .ai-whatsapp-send-button::before { ... } */
/* Added by Jesh, 2025-05-08, Added ::after for "Send" text or icon font */

/* Send button */
#ai-send-message::after {
    grid-column: 1; /* First column (25% width) */
    grid-row: 2; /* Second row */
    /* Or use an icon font: */
    /* font-family: "Font Awesome 5 Free"; */
    /* font-weight: 900; */
    /* content: "\f1d8"; /* fa-paper-plane */
}

#ai-reset-input {
    grid-column: 2; /* Second column (25% width) */
    grid-row: 2; /* Second row */
}


/* Progress bar */
.ai-whatsapp-progress {
    padding: 8px 15px;
    background-color: #F2F2F2;
    font-size: 14px;
    color: #808080;
    border-top: 1px solid #e2e2e2;
}

.ai-progress-bar {
    height: 6px;
    background-color: #e9ecef;
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.ai-progress-fill {
    height: 100%;
    background-color: #7297C5; /* Edited by Jesh, 2025-05-08, Use theme blue */
    transition: width 0.3s ease;
}

/* Typing indicator */
.ai-typing-indicator {
    background-color: #E9ECEF; /* Edited by Jesh, 2025-05-08, Match AI bubble color */
    border-radius: 6px; /* Edited by Jesh, 2025-05-08, Match bubble radius */
    padding: 10px 14px; /* Edited by Jesh, 2025-05-08, Adjust padding */
    display: inline-flex;
    align-items: center;
    margin: 5px auto 5px 10px; /* Edited by Jesh, 2025-05-08, Adjust margin */
    box-shadow: none; /* Edited by Jesh, 2025-05-08, Remove shadow */
    /* Added by Jesh, 2025-05-08, To mimic AI message structure with avatar */
    display: flex;
    max-width: fit-content; /* Adjust width */
}
.ai-typing-indicator .ai-message-content { /* Ensure content area exists for dots */
    padding: 5px 0;
    line-height: 1; /* Prevent extra height */
}

/* Typing indicator dots */
.ai-typing-dot {
    width: 6px; /* Edited by Jesh, 2025-05-08, Smaller dots */
    height: 6px; /* Edited by Jesh, 2025-05-08, Smaller dots */
    border-radius: 50%;
    background-color: #6c757d; /* Edited by Jesh, 2025-05-08, Use theme gray */
    margin: 0 2px;
    animation: typingAnimation 1.4s infinite both;
}
.ai-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.ai-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingAnimation { /* Keep existing animation */
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-4px); } /* Adjust distance if needed */
}

/* Scores container */
/* Styles for the final scores display area */
.ai-whatsapp-scores {
    background-color: #ffffff;
    border: 1px solid #dee2e6; /* Added by Jesh, 2025-05-08, Add border */
    border-radius: 6px; /* Edited by Jesh, 2025-05-08, Make nearly square */
    padding: 20px; /* Edited by Jesh, 2025-05-08, Increase padding */
    margin: 15px auto; /* Edited by Jesh, 2025-05-08, Adjust margin */
    max-width: 85%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* Edited by Jesh, 2025-05-08, Softer shadow */
    font-family: inherit; /* Edited by Jesh, 2025-05-08, Use inherited font */
}

.ai-whatsapp-scores h3 {
    margin-top: 0;
    color: #003366; /* Edited by Jesh, 2025-05-08, Use theme dark blue */
    font-size: 1.2em; /* Edited by Jesh, 2025-05-08, Adjust size */
    border-bottom: 1px solid #e9ecef; /* Edited by Jesh, 2025-05-08, Lighter border */
    padding-bottom: 10px;
    margin-bottom: 15px; /* Added by Jesh, 2025-05-08, Space below title */
}

.ai-whatsapp-scores h4 {
    margin-top: 15px; /* Edited by Jesh, 2025-05-08, Adjust spacing */
    margin-bottom: 10px; /* Edited by Jesh, 2025-05-08, Adjust spacing */
    color: #0056b3; /* Edited by Jesh, 2025-05-08, Use theme blue */
    font-size: 1.05em; /* Edited by Jesh, 2025-05-08, Adjust size */
    font-weight: 600;
}

.ai-whatsapp-scores ul {
    list-style: none;
    padding: 0;
    margin: 0 0 15px 0; /* Edited by Jesh, 2025-05-08, Add bottom margin */
}

.ai-whatsapp-scores li {
    margin-bottom: 6px; /* Edited by Jesh, 2025-05-08, Adjust spacing */
    font-size: 0.95em; /* Edited by Jesh, 2025-05-08, Standard size */
    display: flex;
    justify-content: space-between;
    border-bottom: none; /* Edited by Jesh, 2025-05-08, Remove individual borders */
    padding-bottom: 4px; /* Edited by Jesh, 2025-05-08, Adjust spacing */
    color: #495057; /* Edited by Jesh, 2025-05-08, Set text color */
}

.ai-whatsapp-scores li strong {
    flex: 1;
    color: #343a40; /* Edited by Jesh, 2025-05-08, Darker color for category names */
    font-weight: 500; /* Edited by Jesh, 2025-05-08, Normal weight */
}

.ai-score-passed {
    color: #198754; /* Edited by Jesh, 2025-05-08, Standard success green */
    font-weight: 600;
    background-color: #d1e7dd; /* Edited by Jesh, 2025-05-08, Lighter green background */
    padding: 10px; /* Edited by Jesh, 2025-05-08, Adjust padding */
    border: 1px solid #badbcc; /* Added by Jesh, 2025-05-08, Add subtle border */
    border-radius: 4px;
    text-align: center;
    margin: 15px 0; /* Edited by Jesh, 2025-05-08, Adjust margin */
    font-size: 1.0em; /* Edited by Jesh, 2025-05-08, Adjust size */
}

.ai-score-failed {
    color: #dc3545; /* Edited by Jesh, 2025-05-08, Standard danger red */
    font-weight: 600;
    background-color: #f8d7da; /* Edited by Jesh, 2025-05-08, Lighter red background */
    padding: 10px; /* Edited by Jesh, 2025-05-08, Adjust padding */
    border: 1px solid #f5c2c7; /* Added by Jesh, 2025-05-08, Add subtle border */
    border-radius: 4px;
    text-align: center;
    margin: 15px 0; /* Edited by Jesh, 2025-05-08, Adjust margin */
    font-size: 1.0em; /* Edited by Jesh, 2025-05-08, Adjust size */
}

/* Reset simulation button styling */
.ai-reset-simulation {
    background-color: #6c757d; /* Edited by Jesh, 2025-05-08, Use theme gray */
    color: white;
    border: none;
    border-radius: 4px; /* Edited by Jesh, 2025-05-08, Make nearly square */
    padding: 8px 16px;
    font-size: 0.9em; /* Edited by Jesh, 2025-05-08, Smaller button */
    cursor: pointer;
    margin-top: 20px; /* Edited by Jesh, 2025-05-08, More space above */
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    transition: background-color 0.2s ease; /* Added by Jesh, 2025-05-08 */
}

.ai-reset-simulation:hover {
    background-color: #5a6268; /* Edited by Jesh, 2025-05-08, Darker gray on hover */
}

/* Responsive styles */
@media (max-width: 600px) {
    .ai-whatsapp-chat-container {
        height: calc(100vh - 40px); /* Edited by Jesh, 2025-05-08, Adjust height dynamically */
        border-radius: 0;
        border-left: none;
        border-right: none;
        max-width: 100%; /* Added by Jesh, 2025-05-08, Ensure full width */
    }

    .ai-whatsapp-user-message,
    .ai-whatsapp-ai-message {
        max-width: 85%; /* Edited by Jesh, 2025-05-08, Adjust max width for mobile */
    }
    /* Added by Jesh, 2025-05-08, Adjust padding and font size for mobile */
    #ai-messages-container {
        padding: 10px;
    }

    /* Styling for the scoring messages container */
    #ai-scoring-messages-container {
        padding: 10px;
        max-height: 300px;
        overflow-y: auto;
        border-top: 1px solid #e0e0e0;
        margin-top: 5px;
    }
     .ai-message-content {
        font-size: 14px; /* Slightly smaller on mobile */
    }
    #ai-user-message {
        font-size: 14px; /* Match message font size */
        padding: 8px 12px;
    }
     .ai-whatsapp-input-container {
        padding: 8px;
    }

    .ai-simulation-info-container { /* Adjust info container for mobile */
        max-width: none;
        margin: 10px; /* Add margin for mobile */
        padding: 15px;
    }
}

/* Enhanced scoring feedback styles */
.ai-whatsapp-scoring-message {
    /* start opacity at 0 and then ramp us as message is revealed. */
    opacity: 0;
    transition: opacity 0.3s ease;

    background-color: #e7f1ff !important; /* Edited by Jesh, 2025-05-08, Use light blue, matches user message suggestion */
    border-left: 3px solid #0056b3; /* Edited by Jesh, 2025-05-08, Use theme blue */
    border-radius: 6px; /* Edited by Jesh, 2025-05-08, Match bubble radius */
    color: #212529; /* Edited by Jesh, 2025-05-08, Ensure dark text */
    /* Inherits structure from .ai-whatsapp-ai-message */
}

.ai-whatsapp-scoring-message .ai-message-content {
    font-size: 14px; /* Edited by Jesh, 2025-05-08, Slightly smaller feedback text */
    line-height: 1.5;
}

.ai-whatsapp-scoring-message .ai-message-name {
    color: #0056b3; /* Edited by Jesh, 2025-05-08, Theme blue for title */
    font-weight: bold;
}

/* Style strong tags within scoring message for emphasis */
.ai-whatsapp-scoring-message .ai-message-content strong { /* Edited by Jesh, 2025-05-08, More specific selector */
    color: #003366; /* Edited by Jesh, 2025-05-08, Darker blue for emphasis */
    font-weight: 600; /* Make it slightly bolder */
}

/* Deleted by Jesh, 2025-05-08, Redundant styles covered by .ai-whatsapp-scores */
/* Scores table in final evaluation */
/* .ai-whatsapp-scores { ... } */
/* .ai-whatsapp-scores h3 { ... } */
/* ... etc ... */


/* Deleted by Jesh, 2025-05-08, Score visualization bars not requested */
/* Category score visualization */
/* .category-score-bar { ... } */
/* .category-score-fill { ... } */

/* Add custom styles for code blocks in messages (Keep as is) */
.ai-message-content pre {
    background-color: #f8f9fa; /* Edited by Jesh, 2025-05-08, Use theme light gray */
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #dee2e6; /* Added by Jesh, 2025-05-08, Add border */
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.9em;
    margin: 10px 0;
    white-space: pre-wrap;
}

.ai-message-content code {
    background-color: #e9ecef; /* Edited by Jesh, 2025-05-08, Use theme gray */
    padding: 2px 5px; /* Edited by Jesh, 2025-05-08, Adjust padding */
    border-radius: 3px;
    font-family: monospace;
    font-size: 0.9em;
    color: #c7254e; /* Added by Jesh, 2025-05-08, Add color for inline code */
}

/* Deleted by Jesh, 2025-05-08, Example answer styles not currently needed */
/* Better formatting for example answers */
/* .ai-example-answer { ... } */
/* .ai-example-answer .ai-message-name { ... } */
/* .ai-example-answer .ai-avatar { ... } */

/* Loading indicator specific styles */
#ai-chat-loading-indicator {
    display: none; /* Keep hidden initially */
    text-align: center;
    padding: 15px; /* Edited by Jesh, 2025-05-08, More padding */
    color: #6c757d; /* Edited by Jesh, 2025-05-08, Use theme gray */
    font-style: normal; /* Edited by Jesh, 2025-05-08, Remove italic */
    font-size: 0.9em;
}
/* Added by Jesh, 2025-05-08, Add spinner for loading indicator */
#ai-chat-loading-indicator::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ced4da;
    border-top-color: #0056b3; /* Theme blue */
    border-radius: 50%;
    animation: spinner-rotation 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}
@keyframes spinner-rotation {
    to { transform: rotate(360deg); }
}

/* --- End of File --- */
