#chatModal .modal-dialog {
    max-width: 800px;
}

#chatModal .modal-content {
    border-radius: 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

#chatModal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem;
}

#chatModal .modal-header .btn-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    opacity: 0.7;
}

#chatModal .modal-body {
    padding: 1rem 1.5rem 1.5rem;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.12'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1050;
    transition: transform 0.2s ease-in-out;
}

.chat-icon:hover {
    transform: scale(1.1);
}

.chat-icon i {
    color: white;
    font-size: 28px;
}

.chat-messages {
    height: 60vh;
    overflow-y: auto;
    padding: 10px;
}

.message {
    display: flex;
    margin-bottom: 20px;
    animation: fadeIn 0.5s ease-in-out;
}

.message.user {
    justify-content: flex-end;
}

.message.bot {
    justify-content: flex-start;
}

.message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #4a90e2;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
}

.message.user .message-avatar {
    display: none; /* or user avatar if available */
}

.message-bubble {
    max-width: 75%;
    display: flex;
    flex-direction: column;
}

.message-content {
    padding: 12px 18px;
    border-radius: 18px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    color: #333;
    line-height: 1.6;
}

.message.user .message-content {
    background-color: #dcf8c6;
}

.message-info {
    font-size: 0.75rem;
    color: #888;
    margin-top: 8px;
    padding: 0 10px;
}

.message.user .message-info {
    text-align: right;
}

.chat-input {
    display: flex;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.chat-input input {
    flex-grow: 1;
    border: none;
    background-color: transparent;
    padding: 10px;
    font-size: 1rem;
    color: #333;
}

.chat-input input:focus {
    outline: none;
    box-shadow: none;
}

.chat-input button {
    background: none;
    border: none;
    color: #4a90e2;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 10px;
    transition: color 0.2s;
}

.chat-input button:hover {
    color: #357ABD;
}

.loading {
    display: inline-block;
    width: 25px;
    height: 25px;
    border: 3px solid rgba(0,0,0,.1);
    border-radius: 50%;
    border-top-color: #4a90e2;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Scrollbar styles */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 3px;
}
