/* Floating button container is now transparent */
#ars-assistant-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: transparent; /* Changed to transparent */
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    box-shadow: none; /* Removed shadow */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

/* Style for the custom icon image to make it circular and fit */
#ars-assistant-button img {
    width: 100%; /* Make image fill the container */
    height: 100%; /* Make image fill the container */
    border-radius: 50%; /* Make the image itself circular */
    object-fit: cover; /* Ensures the image covers the area without distortion */
}


#ars-assistant-button:hover {
    transform: scale(1.1);
}

/* Chat window with better spacing and shadow */
#ars-assistant-chat {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
}

/* Initially hidden using this class, which JS removes */
.hidden {
    display: none !important;
}

/* A cleaner, professional header */
.ars-assistant-header {
    background: #C00000; /* Deep Red */
    color: white;
    padding: 16px;
    font-weight: bold;
    text-align: center;
    font-size: 18px;
    position: relative;
    border-bottom: 1px solid #e0e0e0;
}

#minimize-btn {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    padding: 5px;
}

/* Improved message container */
#ars-assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.ars-msg {
    margin-bottom: 12px;
    display: flex;
    max-width: 85%;
}

.ars-msg span {
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
}

/* User message styling */
.ars-user {
    justify-content: flex-end;
    margin-left: auto;
}

.ars-user span {
    background: #C00000; /* Deep Red */
    color: white;
    border-bottom-right-radius: 4px;
}

/* Bot message styling */
.ars-bot {
    justify-content: flex-start;
    margin-right: auto;
}

.ars-bot span {
    background: #e9e9eb;
    color: #333;
    border-bottom-left-radius: 4px;
}

/* Added for the typing indicator */
.ars-bot.typing span {
    background: #e9e9eb;
    color: #999;
    font-style: italic;
}

.speaker-icon {
    background: transparent;
    border: none;
    font-size: 18px;
    margin-left: 8px;
    cursor: pointer;
    color: #555;
    padding: 5px;
    align-self: center;
}

/* Input area styling */
.ars-assistant-input {
    display: flex;
    padding: 12px;
    border-top: 1px solid #e0e0e0;
    align-items: center;
    gap: 8px;
    background: #fff;
}

.ars-assistant-input button {
    background: transparent;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    color: #C00000; /* Deep Red */
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Style for the new SVG icons in the buttons */
.ars-assistant-input button svg {
    width: 24px;
    height: 24px;
    stroke: #C00000; /* Deep Red */
}

/* The send button's icon uses fill instead of stroke */
#ars-send svg {
    stroke: none;
    fill: #C00000; /* Deep Red */
    transform: rotate(45deg) translate(-2px, 2px);
}


.ars-assistant-input button:hover {
    background-color: #f0f0f0;
}

.ars-assistant-input input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 20px;
    border: 1px solid #ccc;
    font-size: 16px;
}

.ars-assistant-input input:focus {
    outline: none;
    border-color: #C00000; /* Deep Red */
}