.chat-toggle {
    position: fixed;
    bottom: 124px;
    left: 24px; /* Changed from right to left */
    width: 60px;
    height: 60px;
    background: #000C3D;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.chat-toggle:hover {
    transform: scale(1.1);
    background: #001666;
}

.chat-toggle.active {
    transform: rotate(45deg);
}

.chat-container {
    position: fixed;
    bottom: 196px;
    left: 24px; /* Changed from right to left */
    width: 380px;
    max-height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    color: black;
}

.chat-container.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    padding: 16px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    position: relative;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    transition: transform 0.2s;
}

.message:hover {
    transform: translateY(-2px);
}

.bot-message {
    background: white;
    border: 1px solid #e0e0e0;
    align-self: flex-start;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-message {
    background: #000C3D;
    color: white;
    align-self: flex-end;
}

.response-category {
    padding: 4px 8px;
    background: #66FF00;
    color: #000C3D;
    border-radius: 4px;
    font-size: 10px;
    position: absolute;
    top: -8px;
    left: 16px;
}

.quick-replies {
    display: flex;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    margin-top: 8px;
}

.quick-reply {
    background: #f0f2f5;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    border: none;
}

.quick-reply:hover {
    background: #000C3D;
    color: white;
}

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

.input-field {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.input-field:focus {
    border-color: #000C3D;
}

.send-button {
    background: #000C3D;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.send-button:hover {
    background: #001666;
    transform: scale(1.1);
}

.tooltip {
    position: absolute;
    background: #000C3D;
    color: white;
    padding: 8px;
    border-radius: 4px;
    font-size: 12px;
    bottom: 70px;
    left: 24px; /* Changed from right to left */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    white-space: nowrap;
}

.chat-toggle:hover .tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

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

.chat-messages::-webkit-scrollbar-thumb {
    background: #000C3D;
    border-radius: 3px;
}

@media (max-width: 480px) {
    .chat-container {
        width: 100%;
        height: 100%;
        left: 0; /* Changed from right to left */
        bottom: 0;
        border-radius: 0;
        max-height: none;
    }

    .chat-toggle {
        bottom: 16px;
        left: 16px; /* Changed from right to left */
    }
}