/* Chat Widget Styles */
#chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
#chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1e3a8a;
    color: white;
    border: none;
    font-size: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
#chat-toggle:hover {
    transform: scale(1.05);
}
#chat-box {
    display: none;
    width: 350px;
    height: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    margin-bottom: 15px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
#chat-header {
    background: #1e3a8a;
    color: white;
    padding: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#chat-header button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
}
#chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    word-wrap: break-word;
}
.msg-agent {
    background: #e2e8f0;
    color: #0f172a;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.msg-user {
    background: #1e3a8a;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}
#chat-form-container {
    padding: 15px;
    background: white;
    border-top: 1px solid #e2e8f0;
}
#chat-input-area {
    display: none;
    padding: 10px;
    background: white;
    border-top: 1px solid #e2e8f0;
    flex-direction: row;
    gap: 10px;
}
#chat-input-area input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    outline: none;
}
#chat-input-area button {
    background: #1e3a8a;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
